79747991

Date: 2025-08-27 12:33:15
Score: 1
Natty:
Report link

client.user returns a ClientUser object, while channel.permissions_for(member) accepts Member or Role.
What you can do is get the bot as a Member by looking for the bot's ID from the guild itself:

bot_id = client.user.id
bot_member = channel.guild.get_member(bot_id)
print(channel.permissions_for(bot_member))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AstroTheNomer