#send channel not working

6 messages · Page 1 of 1 (latest)

robust night
#
client.on("message", async message => {

    
    const spooferEmbed = new EmbedBuilder()
        .setColor('#147df5')
        .setTitle('Bubble Sp00fer')
        .setDescription('**Prices**\n\n> 1x Week / 10€\n> 1x Month / 15€\n> Lifetime / 20€')
        .setThumbnail('https://media.discordapp.net/attachments/1055568148281163818/1088178678170669106/bubble.png')
        .setImage('https://media.discordapp.net/attachments/1055568148281163818/1088176997127176303/bubble_banner.png')

    const channel = await client.channels.fetch('1092194462295404694');
    channel.send({ embeds: [spooferEmbed] });

})

No errors, and it is not sending the embed to the channel

fervent lindenBOT
#

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

tawdry sphinx
#

the event is messageCreate in v14

#

you also dont need to fetch the channel if you have the Guilds intent (except forums iirc)

robust night
#

how can I fix it exactly.