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 default_member_permissions and contexts fields to application commands #254

Merged

Conversation

wouterdedroog
Copy link
Contributor

Summary

Add default_member_permissions and contexts field to application commands to allow disabling of application commands in DMs and more precise setting of permissions.


Added

  • Added default_member_permissions and contexts to register_application_command and edit_application_command
  • Added default_member_permissions and contexts to create_guild_command, create_global_command, edit_guild_command and edit_global_command.

Changed

Deprecated

Nothing yet, although I'd recommend removing/deprecating default_permission in favour of default_member_permissions. I could incorporate this in my PR if desired, but we can also decide to keep this for now.

Removed

Fixed

@wouterdedroog wouterdedroog changed the title Feature/add fields to application commands Add default_member_permissions and contexts fields to application commands Mar 18, 2024
Copy link
Member

@swarley swarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@swarley swarley merged commit 50fbb5f into shardlab:main Aug 29, 2024
6 of 7 checks passed
@wouterdedroog wouterdedroog deleted the feature/add-fields-to-application-commands branch August 31, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants