aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/deploy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/deploy.go b/commands/deploy.go
index e652d43..7b039f2 100644
--- a/commands/deploy.go
+++ b/commands/deploy.go
@@ -70,7 +70,7 @@ func init() {
func Deploy(ctx context.Context, dg bot.Session) error {
guildID := ""
if common.IsDebug(ctx) {
- guildID = dg.GuildAPI().State.Guilds()[0]
+ guildID = dg.GuildState().ListGuilds()[0]
bot.Logger(ctx).Debug("using guild as debug", "guild", guildID)
}
_, err := interaction.OverwriteCommands(dg.SessionState().Application().ID, guildID, commands).Do(ctx)