πSending Buttons
How to send a button
const { MessageActionRow } = require("discord.js");
module.exports = {
name: "ping",
description: "pingi",
options: null,
development: false,
cooldown: 1,
clientPermissions: null,
userPermissions: null,
run: (interaction, client, tdhandler, user, member) => {
const button = tdhandler.getButton("help")
const row = new MessageActionRow().addComponents([button])
interaction.reply({
content: "hi click the button thx",
components: [row]
})
}
}Last updated