#Webhook message doesn't shows up as blank when doing console.log(message.content)

11 messages · Page 1 of 1 (latest)

subtle sonnetBOT
#

• 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.

jolly fox
#

v18.14.1

chrome tundra
glass chasmBOT
#

If you aren't getting content, embeds or attachments of a message, make sure you have the MessageContent intent enabled in the Developer Portal and provide it to your client:

const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
    intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
chrome tundra
#

They’re on v13

jolly fox
#
const client = new Client({
  intents: [
       IntentsBitField.Flags.Guilds,
        IntentsBitField.Flags.GuildMessages,
        IntentsBitField.Flags.GuildWebhooks,
        IntentsBitField.Flags.MessageContent,
    ],
});
#

it can't read webhooks or something

#

maybe it's because of their format (The webhook is made up by an antire body full of different images and texts)

#

I don't know, maybe it's the embed