mirror of
https://github.com/idanoo/GoDiscMoji
synced 2025-07-22 10:39:11 +00:00
Cleanup
This commit is contained in:
parent
84f85832c0
commit
e9229c8094
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue