how to send a message discord.js
message.reply("message here"); message.channel.send("message here");
discord.js add button to message
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
Source: discordjs.guide
how to send a message using discord.js
client.channels.cache.get('CHANNELID').send('message');