Improved interaction response detection

This commit is contained in:
jacks0n9 2023-11-10 11:18:17 -08:00
parent 224d16f35d
commit ff07bc3ac1
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}