aboutsummaryrefslogtreecommitdiff
path: root/commands/deploy.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/deploy.go')
-rw-r--r--commands/deploy.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/deploy.go b/commands/deploy.go
index 4974d50..c388228 100644
--- a/commands/deploy.go
+++ b/commands/deploy.go
@@ -71,6 +71,11 @@ func Deploy(ctx context.Context, dg bot.Session) error {
guildID := ""
if common.IsDebug(ctx) {
guildID = dg.GuildAPI().State.Guilds()[0]
+ gld, err := dg.GuildAPI().State.Guild(guildID)
+ if err != nil {
+ return err
+ }
+ bot.Logger(ctx).Debug("using guild as debug", "guild", gld.Name)
}
_, err := dg.InteractionAPI().CommandBulkOverwrite(dg.SessionState().Application().ID, guildID, commands).Do(ctx)
return err