mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-17 16:57:28 +00:00
fix(MessageCreateAction): receive DMs in uncached DMChannels again (#11495)
This commit is contained in:
@@ -10,6 +10,7 @@ class MessageCreateAction extends Action {
|
||||
id: data.channel_id,
|
||||
author: data.author,
|
||||
...('guild_id' in data && { guild_id: data.guild_id }),
|
||||
...('channel_type' in data && { type: data.channel_type }),
|
||||
});
|
||||
if (channel) {
|
||||
if (!channel.isTextBased()) return {};
|
||||
|
||||
Reference in New Issue
Block a user