aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 16:27:37 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 16:27:37 +0100
commitf84edf350c805d2e918441dc3a3102c951439fe1 (patch)
treea788a273443f09eed2ce97b501a922cc92a25120 /commands
parentefaa24393a3e7c999f6706d88a9cba74bfa62980 (diff)
feat(commands): stop after commands deployment
Diffstat (limited to 'commands')
-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