Direct messages are not being received #8864
-
The following event handler does not fire when a user sends direct messages to the bot. However, with my current setup, it does fire when regular messages are sent in a guild. Are there perhaps any options that are missing? Help would be greatly appreciated. client.on(Events.MessageCreate, msg => {
// Do stuff with message here
}) Relevant Client Options const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
],
partials: [
"CHANNEL",
],
}); Further Details |
Beta Was this translation helpful? Give feedback.
Answered by
almeidx
Nov 25, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ArmandKrynauw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"CHANNEL"
is not a valid partial in v14. You have to importPartials
from discord.js and usePartials.Channel