DiscordTickets/src/buttons/close.js

21 lines
417 B
JavaScript
Raw Normal View History

const { Button } = require('@eartharoid/dbf');
module.exports = class CloseButton extends Button {
constructor(client, options) {
super(client, {
...options,
id: 'close',
});
}
/**
* @param {*} id
* @param {import("discord.js").ButtonInteraction} interaction
*/
async run(id, interaction) {
/** @type {import("client")} */
const client = this.client;
await interaction.deferReply();
}
};