discord-freepbx-manager/interactionHandlers/commands/button.js

37 lines
812 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const pool = global.pool
const fpbx = global.fpbx
const client = global.client
const log = global.log
const Discord = require("discord.js")
module.exports = {};
module.exports.execute = async (interaction) => {
interaction.channel.send({
embeds: [{
title: "Placeholder",
description: "I'll put the full embed here once we get it finalized.",
}],
components: [
{
type: 1,
components: [
{
type: Discord.ComponentType.Button,
label: "Get an Extension",
emoji: "✅",
style: Discord.ButtonStyle.Success,
custom_id: "newExtension"
},
{
type: Discord.ComponentType.Button,
label: "Get your extension info",
emoji: "",
style: Discord.ButtonStyle.Primary,
custom_id: "getExtensionInfo"
}
]
}
]
})
}