-
I am trying to get comands.has_permissions to return True or false but it keeps returning decorator object |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
comands.has_permissions is used as a decorator to check if the user who ran the command has the permissions to run the command
|
Beta Was this translation helpful? Give feedback.
-
You can trigger it yourself manually by doing |
Beta Was this translation helpful? Give feedback.
-
These aren't meant to be called directly, there's no reason to. Just use the interfaces that exist for this. ctx.channel.permissions_for and ctx.author.guild_permissions |
Beta Was this translation helpful? Give feedback.
comands.has_permissions is used as a decorator to check if the user who ran the command has the permissions to run the command
example: