Slash command permissions #2148
-
I wonder if it is possible with discord.net somehow set slash command permissions for role/user like in Discord.js |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@Cenngo care to give some context? For as long as the base permission system is all we have, it may be good to revisit this discussion for a clear answer |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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