Skip to content

Slash command permissions #2148

Answered by Cenngo
Thanatoros asked this question in Q&A
Mar 2, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Both the interaction service and the core library have the necessary methods to interact with the permissions api. Using the core library functions, you can set/overrider command permissions using the ApplicationCommand.ModifyCommandPermissionsAsync() method. Using the interaction service, InteractionService.ModifySlashCommandPermissionsAsync() method allows you to modify command permissions from the info class of an attribute based slash command

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ajruckman
Comment options

@jdrames
Comment options

@Cenngo
Comment options

Answer selected by csmir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2147 on March 02, 2022 18:59.