diff options
Diffstat (limited to 'commands/deploy.go')
| -rw-r--r-- | commands/deploy.go | 6 |
1 files changed, 1 insertions, 5 deletions
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 |
