#MessageUpdate event triggered on interaction reply

18 messages · Page 1 of 1 (latest)

daring tartan
#

My bot sends a reply to a interaction that was initially defered. When the reply is posted it is triggering a messageUpdate event. how can i avoid this ?

crimson quail
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

warped tide
#

u mean ur editing the deferred interaction?

daring tartan
#

yes i guess

#

i editReply the initial interaction

warped tide
#

well ur still technically editing a message

#

since it’s a webhook

#

so it’s gonna trigger regardless

daring tartan
#

is there any check to see if the original message is a defer

warped tide
#

why don’t u want it to trigger

daring tartan
#

i am trying to log message edits, so when ever my bot send a interaction editReply to a defered interaction, it triggerers the logging function

warped tide
#

message.flags

daring tartan
#

will look into that

#

thanks

warped tide
#

np

daring tartan
#

Message.flags.has("Loading")

#

that worked