This commit is contained in:
Daniel Mason 2025-07-19 22:14:19 +12:00
parent 84f85832c0
commit e9229c8094
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -70,6 +70,17 @@ func (bot *Bot) Start() error {
} }
defer discord.Close() defer discord.Close()
// Debug logged cmds
// cmds, err := discord.ApplicationCommands(discord.State.Application.ID, "")
// if err != nil {
// slog.Error("Failed to get existing commands", "err", err)
// } else {
// for _, cmd := range cmds {
// slog.Info("Registered command", "name", cmd.Name, "id", cmd.ID)
// // _, _ = discord.ApplicationCommandBulkOverwrite(discord.State.Application.ID, "", nil)
// }
// }
// Register commands // Register commands
bot.RegisterCommands() bot.RegisterCommands()
b = bot b = bot