From aff3447a7b84c85be0020af95aecaa6c14f8b09b Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 25 Jan 2026 17:06:40 +0100 Subject: fix(commands): various dumb things --- commands/deploy.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'commands/deploy.go') diff --git a/commands/deploy.go b/commands/deploy.go index c388228..ee98d07 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -71,11 +71,7 @@ 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) + bot.Logger(ctx).Debug("using guild as debug", "guild", guildID) } _, err := dg.InteractionAPI().CommandBulkOverwrite(dg.SessionState().Application().ID, guildID, commands).Do(ctx) return err -- cgit v1.2.3