Skip to content

Commit

Permalink
fix sub command handler loop
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Oct 6, 2021
1 parent 2044f16 commit e8e1af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (c *Ctx) HandleSubCommands(handler ...SubCommandHandler) (err error) {
for _, h := range handler {
opt := c.Options().Get(0)
if opt.Type != discordgo.ApplicationCommandOptionSubCommand || opt.Name != h.Name {
return
continue
}

ctx := &SubCommandCtx{c, h.Name}
Expand Down

0 comments on commit e8e1af0

Please sign in to comment.