mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-24 03:01:28 +02:00
* new lines * ephemeral button interactions * send message to channel if interaction is ephemeral * move deferreply to use ephemeral on no perms * .editReply() -> .reply()
22 lines
443 B
JavaScript
22 lines
443 B
JavaScript
const { Button } = require('@eartharoid/dbf');
|
|
|
|
module.exports = class UnclaimButton extends Button {
|
|
constructor(client, options) {
|
|
super(client, {
|
|
...options,
|
|
id: 'unclaim',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* @param {*} id
|
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
|
*/
|
|
async run(id, interaction) {
|
|
/** @type {import("client")} */
|
|
const client = this.client;
|
|
|
|
await client.tickets.release(interaction);
|
|
}
|
|
};
|