aboutsummaryrefslogtreecommitdiff
path: root/commands/deploy.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 17:06:40 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 17:06:40 +0100
commitaff3447a7b84c85be0020af95aecaa6c14f8b09b (patch)
tree007dfa9bcc9e528fa855358ff96a59eea0353feb /commands/deploy.go
parent2bf38473893b4fcd86ce7c97c04846237bb8cce4 (diff)
fix(commands): various dumb things
Diffstat (limited to 'commands/deploy.go')
-rw-r--r--commands/deploy.go6
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