Как отправить сообщение discord.js
message.reply("message here");
message.channel.send("message here");
Xenophobic Xenomorph
message.reply("message here");
message.channel.send("message here");
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
const row = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('primary')
.setLabel('Primary')
.setStyle('PRIMARY'),
);
const embed = new MessageEmbed()
.setColor('#0099ff')
.setTitle('Some title')
.setURL('https://discord.js.org')
.setDescription('Some description here');
await interaction.reply({ content: 'w', ephemeral: true, embeds: [embed], components: [row] });
1
client.channels.cache.get('CHANNELID').send('message');