diff --git a/src/boost/update_change.go b/src/boost/update_change.go index 7c2981e3..4d0d2fb6 100644 --- a/src/boost/update_change.go +++ b/src/boost/update_change.go @@ -11,7 +11,13 @@ import ( // GetSlashChangeCommand returns the /update slash command with main subcommand groups for farmer and contract func GetSlashChangeCommand(cmd string) *discordgo.ApplicationCommand { return &discordgo.ApplicationCommand{ - Name: cmd, + Name: cmd, + Contexts: &[]discordgo.InteractionContextType{ + discordgo.InteractionContextGuild, + }, + IntegrationTypes: &[]discordgo.ApplicationIntegrationType{ + discordgo.ApplicationIntegrationGuildInstall, + }, Description: "Update contract statistics", Options: []*discordgo.ApplicationCommandOption{ { diff --git a/src/boost/update_farmer.go b/src/boost/update_farmer.go index 1c262ef0..b3814298 100644 --- a/src/boost/update_farmer.go +++ b/src/boost/update_farmer.go @@ -16,7 +16,13 @@ func GetSlashUpdateCommand(cmd string) *discordgo.ApplicationCommand { intMax490 := float64(490) return &discordgo.ApplicationCommand{ - Name: cmd, + Name: cmd, + Contexts: &[]discordgo.InteractionContextType{ + discordgo.InteractionContextGuild, + }, + IntegrationTypes: &[]discordgo.ApplicationIntegrationType{ + discordgo.ApplicationIntegrationGuildInstall, + }, Description: "Update farmer statistics", Options: []*discordgo.ApplicationCommandOption{ {