MessageUpdate event triggered on interaction reply

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 ?
10 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
yes i guess i editReply the initial interaction
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
is there any check to see if the original message is a defer
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
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
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
will look into that thanks
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
Message.flags.has("Loading") that worked thanks
Want results from more Discord servers?
Add your server