[✅]lastMessage is null when lastMessageId is not ? [DM channel]
Hello !
As explained in this title, I'm using dmChannel in a command, just that atm :
Here is the output
I only have
GatewayIntentBits.DirectMessages
as DM related intent atm. Am I missing something ?
node version : 16.15.08 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
additional information :
The DM channel between me and the bot contains only two message from him
that can be expected
just because the id is present doesnt mean that the bot will fetch it/have the message in cache
So I have to get around this by fetching the message with the ID I guess ? <:AlbedoMath_Wilock:799116606168629248>
channel.messages.fetch(id)
Yeah, alright
Thank you ~ <:KleeOK_GreenTea:782407596778061835>
when fetching a channel from discord, it only sends the id
discord.js doesnt fetch the message associated
Yeah I forgot about this cached concept sorry again !