mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-07 05:21:52 +03:00
22 lines
490 B
JavaScript
22 lines
490 B
JavaScript
const { Button } = require('@eartharoid/dbf');
|
|
|
|
module.exports = class ClaimButton extends Button {
|
|
constructor(client, options) {
|
|
super(client, {
|
|
...options,
|
|
id: 'claim',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* @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.claim(interaction);
|
|
}
|
|
}; |