All these functions can be used with messages as interactions.
Use these functions with message functions?
Change interaction to message. For example: interaction.send("Hello!"); then becomes message.send("Hello!");
Button
constembed=interaction.embedSuccess("This is a success embed!");constbutton=interaction.button({ label:"button", style:"PRIMARY",// PRIMARY or SECONDARY id:"button1"})constrow=interaction.row(button);interaction.channel.send({ embeds: [embed], components: [row] })
Success button
constembed=interaction.embedSuccess("This is a success embed!");constbutton=interaction.buttonSuccess("Success","Success");constrow=interaction.row(button);interaction.channel.send({ embeds: [embed], components: [row] })
Danger button
constembed=interaction.embedSuccess("This is a success embed!");constbutton=interaction.buttonDanger("Danger","Danger");constrow=interaction.row(button);interaction.channel.send({ embeds: [embed], components: [row] })
Link button
constembed=interaction.embedSuccess("This is a success embed!");constbutton=interaction.buttonLink("Link","URL");constrow=interaction.row(button);interaction.channel.send({ embeds: [embed], components: [row] })