From f43237083fcab48b3e45514a65ccf247c85168c0 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Sat, 5 Apr 2025 11:45:03 +0900 Subject: [PATCH] fix: loop logic --- commands/discommand.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/discommand.go b/commands/discommand.go index a04d5ad..9685068 100644 --- a/commands/discommand.go +++ b/commands/discommand.go @@ -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 } }