Skip to content

Commit cd224c3

Browse files
authored
Merge pull request #28 from codeinuit/add-debug-logging-to-load-cmd
Add debug logging to load cmd
2 parents 83f0472 + b53907c commit cd224c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/shibesbot/discord.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ func (sb *Shibesbot) initDiscord() error {
6969
return err
7070
}
7171

72+
sb.log.Debug("updating Discord command list")
7273
for _, cmd := range commands {
73-
_, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd)
74-
if err != nil {
74+
sb.log.Debugf("adding command %s", cmd.Name)
75+
if _, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd); err != nil {
7576
return err
7677
}
7778
}

0 commit comments

Comments
 (0)