whoops wrong print

This commit is contained in:
2024-02-22 09:46:27 +01:00
parent 91990e0a10
commit c23a1c7969

View File

@@ -34,7 +34,7 @@ func ready(s *discordgo.Session, event *discordgo.Ready) {
for _, command := range commands {
if !slices.Contains(existingCommandNames, command.Definition.Name) || slices.Contains(os.Args, "--update") {
cmd, err := s.ApplicationCommandCreate(s.State.User.ID, guild.ID, &command.Definition)
fmt.Printf("\nDeleted command \"%s\"", cmd.Name)
fmt.Printf("\nAdded command \"%s\"", cmd.Name)
if err != nil {
fmt.Println("error creating command,", err)
continue