diff --git a/modules/adventcalendar/chatCommand.go b/modules/adventcalendar/chatCommand.go index d9ab10a..b1fcd8e 100644 --- a/modules/adventcalendar/chatCommand.go +++ b/modules/adventcalendar/chatCommand.go @@ -52,6 +52,7 @@ func (Chat) AppCmd() *discordgo.ApplicationCommand { DescriptionLocalizations: *util.TranslateLocalization(tp + "option.draw.description"), }, }, + DefaultMemberPermissions: util.IntZero(), // Set to '0' to deny for everyone by default. See https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-using-default-permissions } } diff --git a/modules/secretsanta/chatCommand.go b/modules/secretsanta/chatCommand.go index f6cf17e..f5b5cd5 100644 --- a/modules/secretsanta/chatCommand.go +++ b/modules/secretsanta/chatCommand.go @@ -35,6 +35,7 @@ func (Chat) AppCmd() *discordgo.ApplicationCommand { DescriptionLocalizations: *util.TranslateLocalization(tp + "cmd.option.update.description"), }, }, + DefaultMemberPermissions: util.IntZero(), // Set to '0' to deny for everyone by default. See https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-using-default-permissions } } diff --git a/modules/secretsanta/messageCommandSetup.go b/modules/secretsanta/messageCommandSetup.go index dd7da1e..ae0a6c9 100644 --- a/modules/secretsanta/messageCommandSetup.go +++ b/modules/secretsanta/messageCommandSetup.go @@ -18,9 +18,10 @@ type MsgCmd struct { // AppCmd (ApplicationCommand) returns the definition of the chat command func (cmd *MsgCmd) AppCmd() *discordgo.ApplicationCommand { return &discordgo.ApplicationCommand{ - Type: discordgo.MessageApplicationCommand, - Name: lang.GetDefault(tp + "base"), - NameLocalizations: util.TranslateLocalization(tp + "base"), + Type: discordgo.MessageApplicationCommand, + Name: lang.GetDefault(tp + "base"), + NameLocalizations: util.TranslateLocalization(tp + "base"), + DefaultMemberPermissions: util.IntZero(), // Set to '0' to deny for everyone by default. See https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-using-default-permissions } }