send channel not working

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] });

})
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
4 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Marcus
MarcusOP2y ago
I don't really understand how can I fix it exactly.
d.js docs
d.js docs2y ago
The message and interaction events were renamed to messageCreate and interactionCreate respectively, to bring the library in line with Discord's naming conventions.
- client.on('message', message => { ... });
+ client.on('messageCreate', message => { ... });
- client.on('interaction', interaction => { ... });
+ client.on('interactionCreate', interaction => { ... });
- client.on('message', message => { ... });
+ client.on('messageCreate', message => { ... });
- client.on('interaction', interaction => { ... });
+ client.on('interactionCreate', interaction => { ... });
Want results from more Discord servers?
Add your server