From f84edf350c805d2e918441dc3a3102c951439fe1 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 25 Jan 2026 16:27:37 +0100 Subject: feat(commands): stop after commands deployment --- commands/deploy.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'commands') 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 -- cgit v1.2.3