Answers for "how to edit the buttons of a message on discord.js"

2

discord.js how to edit a message

message.channel.send("Beep").then((sentMessage) => sentMessage.edit("Boop!"))
Posted by: Guest on October-10-2020
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 "how to edit the buttons of a message on discord.js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language