const { EmbedBuilder, ChannelType } = require('discord.js');
module.exports = {
name: 'messageCreate',
on: true,
execute(channel, message){
console.log('Message')
if(message.content.includes('@Yara')) return true;
if(channel.type !== ChannelType.DM) return;
const whatTypeHelpEmbed = new EmbedBuilder()
.setColor('Red')
.setTitle('Hello!')
.setDescription('Please select one of the options below.\n\n> 1️⃣ - I have a question about something.\n> 2️⃣ - I have a complaint about an issue.')
message.author.send({ embeds: [whatTypeHelpEmbed]}).then(() => {
whatTypeHelpEmbed.react('1️⃣')
whatTypeHelpEmbed.react('2️⃣')
})
}
}
Output Nothing
Please help, i do have the special thing turned on in dev and i have message content gateway bits
Home: Introduction