mirror of
https://github.com/Xevion/banner.git
synced 2025-12-18 12:11:17 -06:00
Add debug log on cmd count
This commit is contained in:
@@ -22,6 +22,7 @@ func Register() ([]*discordgo.ApplicationCommand, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic().Err(err).Msg("Cannot get commands")
|
log.Panic().Err(err).Msg("Cannot get commands")
|
||||||
}
|
}
|
||||||
|
log.Debug().Int("registered", len(currentComands)).Int("definitions", len(commandDefinitions)).Msg("Commands Counted")
|
||||||
if len(currentComands) != len(commandDefinitions) {
|
if len(currentComands) != len(commandDefinitions) {
|
||||||
log.Info().Int("registered", len(currentComands)).Int("definitions", len(commandDefinitions)).Msg("Number of registered commands does not match number of command definitions, registering all commands")
|
log.Info().Int("registered", len(currentComands)).Int("definitions", len(commandDefinitions)).Msg("Number of registered commands does not match number of command definitions, registering all commands")
|
||||||
return SimpleRegister(currentComands)
|
return SimpleRegister(currentComands)
|
||||||
|
|||||||
Reference in New Issue
Block a user