MessageId changing when message is sent? #1500
-
Describe the bugUnsure what exactly is going on but when i console log the message id or interaction id before the message is sent and then when the message i sent the message id changes. Is there a reason for this and if so whats a fix for this as i need it so i can edit the message from the id when a request is made. To Reproduce
ScreenshotsNo response Device (please complete the following information)Device: PC Additional notesNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
you are comparing a message id to an interaction ~~id~~~response id (those are not the same thing) |
Beta Was this translation helpful? Give feedback.
-
Oh alright, yeah didnt think i was doing it wrong since i havent touched discord.js in a while and seen it doing that and though it was a bug or something. Sorry for the confusion and all and thank you for the help. |
Beta Was this translation helpful? Give feedback.
I see, https://old.discordjs.dev/#/docs/discord.js/14.13.0/class/ButtonInteraction?scrollTo=deferReply returns a Message only if the
fetchReply
option is passed. Otherwise an InteractionResponse. So you are comparing the id of the InteractionResponse to the message, since you do not supply thefetchReply
option int hedeferReply
call.