Currently, this PR reimplements a lot of utils that were used in commands.requires, the source of Red specific text command checks, because of circular import issues and the fact that those versions generally rely on having a Context object. Not sure how fixable this is.
Description of the changes
Implements
is_owner
,guildowner
,admin
,mod
,guildowner_or_permissions
,admin_or_permissions
,mod_or_permissions
,can_manage_channel
,admin_or_can_manage_channel
,mod_or_can_manage_channel
,bot_can_manage_channel
,bot_can_react
, andbot_in_a_guild
.Currently, this PR reimplements a lot of utils that were used in
commands.requires
, the source of Red specific text command checks, because of circular import issues and the fact that those versions generally rely on having aContext
object. Not sure how fixable this is.Docs: https://red-discordbot--6400.org.readthedocs.build/en/6400/framework_checks_app_commands.html
Closes #6017
Have the changes in this PR been tested?
Yes