fix: loop logic

This commit is contained in:
Siwoo Jeon 2025-04-05 11:45:03 +09:00
parent 2eac1b12e4
commit f43237083f
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -110,10 +110,11 @@ func (d *DiscommandStruct) ChatInputRun(name string, s *discordgo.Session, i *di
func (d *DiscommandStruct) ComponentRun(s *discordgo.Session, i *discordgo.InteractionCreate) {
for _, c := range d.Components {
if (!c.Parse(&ComponentContext{s, i, c})) {
return
continue
}
c.Run(&ComponentContext{s, i, c})
break
}
}