Answers for "discord.js add button to message"

5

how to send a message discord.js

message.reply("message here");
message.channel.send("message here");
Posted by: Guest on April-05-2020
1

how to send a message using discord.js

client.channels.cache.get('CHANNELID').send('message');
Posted by: Guest on March-19-2021
0

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
Posted by: Guest on December-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language