From ff07bc3ac10103cc18b7163a1332483a9aef1e09 Mon Sep 17 00:00:00 2001 From: jacks0n9 Date: Fri, 10 Nov 2023 11:18:17 -0800 Subject: [PATCH] Improved interaction response detection --- run_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_command.go b/run_command.go index ca6b6c4..48a2a46 100644 --- a/run_command.go +++ b/run_command.go @@ -41,7 +41,7 @@ func (hir *haccerInteractionsRunner) GuildChannelRunCommand(c Command, args *[]C if len(words) < 1 { return } - if m.Interaction.User.ID == s.State.User.ID && words[0] == c.Name { + if m.Interaction.User.ID == s.State.User.ID && words[0] == c.Name && m.Author.ID == c.ApplicationID { commandRespChan <- *m.Message cmdMutex.Unlock() }