https://discordjs.guide/popular-topics/embeds.html...
- const { Client, Intents } = require('discord.js');
+ const { Client, Intents, MessageEmbed } = require('discord.js');
// ... //
- const embed = new Discord.MessageEmbed()
- .setAuthor("Айпи наших серверов")
- .setColor('#228B22')
- .setDescription("Servername #1 - 37.230.210.97:27015 [Online " + play + "/128]")
- .setFooter("© SKRP. Все права защищены.")
- .setTimestamp()
+ const embed = new MessageEmbed();
+ .setAuthor({ name: "Айпи наших серверов" })
+ .setColor('#228B22')
+ .setDescription("Servername #1 - 37.230.210.97:27015 [Online " + play + "/128]")
+ .setFooter({ text: "© SKRP. Все права защищены." })
+ .setTimestamp()
(node:7672) DeprecationWarning: The message event is deprecated. Use messageCreate instead
- client.on('message', async message => { /* ... */ })
+ client.on('messageCreate', async message => { /* ... */ })