Skip to content

Commit

Permalink
fix: command were still not registering
Browse files Browse the repository at this point in the history
Yes
  • Loading branch information
TheTipo01 committed Nov 21, 2021
1 parent ce1fc7d commit bd3d437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ func ready(s *discordgo.Session, _ *discordgo.Ready) {
found := false

for _, l := range commands {
found = false

for _, o := range cmds {
// We compare every online command with the ones locally stored, to find if a command with the same name exists
if l.Name == o.Name {
Expand All @@ -226,8 +228,6 @@ func ready(s *discordgo.Session, _ *discordgo.Ready) {
if err != nil {
lit.Error("Cannot create '%s' command: %s", l.Name, err)
}

found = false
}
}
}
Expand Down

0 comments on commit bd3d437

Please sign in to comment.