#Fetching an ephemeral Message reply from an ID
16 messages · Page 1 of 1 (latest)
• 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.
I tried getting it using Guild.channels.messages.fetch, but it threw { message: 'Unknown Message', code: 10008 } at me
If this doesn't make sense, I can provide a diagram kek
wack
10008: UNKNOWN MESSAGE
Message id is not found. It uses the incorrect message id, or the possibility of the bot not having access to that message. This could happen in cases such as ephemeral, mentioning a message that no longer exists, or one from a guild/channel the bot is not a part of.
you can only update ephemeral message through an interaction webhook
Ah, thanks for telling me
Where is this from? I didn't find this in the docs ;-;
Oh, I wrote it. https://autocode.com/leguchi/threads/discord-s-error-codes-45f55030/#10008-unknown-message Some of these are based on things using Autocode's Discord library. If you don't know what Autocode is, you're lucky: He's a piece of crap at this point. Some of them do have things that are basic Discord things though so I use it occasionally to check what caused that error.
Looks useful, thanks <3
🙂
Does this mean that the ethereal message can be edited with this webhook endpoint? https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
It does. Up to 15 minutes after the interaction happened (if you still have the Interaction object you can just call editReply on it)