Skip to content

Commit

Permalink
Merge pull request #28 from codeinuit/add-debug-logging-to-load-cmd
Browse files Browse the repository at this point in the history
Add debug logging to load cmd
  • Loading branch information
codeinuit authored May 12, 2024
2 parents 83f0472 + b53907c commit cd224c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/shibesbot/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit cd224c3

Please sign in to comment.