diff --git a/main.go b/main.go index 48b2731..4596912 100644 --- a/main.go +++ b/main.go @@ -157,19 +157,6 @@ func main() { }) log.Info().Array("commands", arr).Msg("Registering commands") - // Unregister commands from server - guildId, _ := strconv.ParseInt(os.Getenv("BOT_TARGET_GUILD"), 10, 64) - commands, err := session.ApplicationCommands(session.State.User.ID, fmt.Sprint(guildId)) - if err != nil { - log.Fatal().Err(err).Msg("Cannot get commands") - } - for _, cmd := range commands { - err := session.ApplicationCommandDelete(session.State.User.ID, fmt.Sprint(guildId), cmd.ID) - if err != nil { - log.Fatal().Err(err).Msg("Cannot delete command") - } - } - // Register commands Register()