Moondancer
Moondancer

Reputation: 134

discord.py get all permissions a bot has

So I am developing a Bot using discord.py and I want to get all permissions the Bot has in a specific Guild. I already have the Guild Object but I don't know how to get the Permissions the Bot has. I already looked through the documentation but couln't find anything in that direction...

Upvotes: 0

Views: 303

Answers (1)

tk421
tk421

Reputation: 281

From a Member object, like guild.me (a Member object similar to Bot.user, essentially a Member object representing your bot), you can get the permissions that member has from the guild_permissions attribute.

Upvotes: 1

Related Questions