DiscordTickets/src/buttons/unclaim.js

22 lines
496 B
JavaScript
Raw Normal View History

const { Button } = require('@eartharoid/dbf');
module.exports = class UnclaimButton extends Button {
constructor(client, options) {
super(client, {
...options,
id: 'unclaim',
});
}
2022-10-29 02:33:19 +03:00
/**
* @param {*} id
* @param {import("discord.js").ChatInputCommandInteraction} interaction
*/
async run(id, interaction) {
/** @type {import("client")} */
const client = this.client;
await interaction.deferReply({ ephemeral: false });
await client.tickets.release(interaction);
}
};