Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Red specific app command check decorators #6400

Open
wants to merge 7 commits into
base: V3/develop
Choose a base branch
from

Conversation

Flame442
Copy link
Member

@Flame442 Flame442 commented Jul 10, 2024

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, and bot_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 a Context 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

@Flame442 Flame442 added the Type: Feature New feature or request. label Jul 10, 2024
@Flame442 Flame442 added this to the 3.5.10 milestone Jul 10, 2024
@github-actions github-actions bot added the Category: Core - API - App Commands Package This is related to the `redbot.core.app_commands` package. label Jul 10, 2024
@github-actions github-actions bot added the Category: Docs - Other This is related to documentation that doesn't have its dedicated label. label Jul 10, 2024
@github-actions github-actions bot added Category: Core - API - Bank This is related to the core Bank API. Category: Docs - Changelogs This is related to version changelogs. labels Jul 10, 2024
@github-actions github-actions bot added the Category: Meta This is related to the repository maintenance. label Jul 10, 2024
@Kowlin Kowlin self-requested a review September 11, 2024 03:33
@Kreusada Kreusada self-assigned this Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - API - App Commands Package This is related to the `redbot.core.app_commands` package. Category: Core - API - Bank This is related to the core Bank API. Category: Docs - Changelogs This is related to version changelogs. Category: Docs - Other This is related to documentation that doesn't have its dedicated label. Category: Meta This is related to the repository maintenance. Type: Feature New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add red-specific check decorators for app commands
2 participants