From b53907ca31e7d669dee38bd45e226f8d117141b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Debout=C3=A9?= Date: Sun, 12 May 2024 12:40:04 +0200 Subject: [PATCH] add debug logging --- cmd/shibesbot/discord.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/shibesbot/discord.go b/cmd/shibesbot/discord.go index 0c41cb4..b7a3fc2 100644 --- a/cmd/shibesbot/discord.go +++ b/cmd/shibesbot/discord.go @@ -69,9 +69,10 @@ func (sb *Shibesbot) initDiscord() error { return err } + sb.log.Debug("updating Discord command list") for _, cmd := range commands { - _, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd) - if err != nil { + sb.log.Debugf("adding command %s", cmd.Name) + if _, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd); err != nil { return err } }