[✅]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 :

const dmChannel = await user.createDM();

console.log(await dmChannel.lastMessageId);
console.log(await dmChannel.lastMessage);
//await dmChannel.send(args.join(" "));
await message.react('✅');


Here is the output
1056613381500584057
null


I only have GatewayIntentBits.DirectMessages as DM related intent atm. Am I missing something ?

node version : 16.15.0
Was this page helpful?