From eded085630b4fbd593dc4d0cd2aedf12088fc742 Mon Sep 17 00:00:00 2001 From: Michael McCarty Date: Tue, 10 Feb 2026 17:32:10 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Configure=20Discord=20slash=20co?= =?UTF-8?q?mmand=20contexts=20and=20integration=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boost/update_change.go | 8 +++++++- src/boost/update_farmer.go | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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{ {