mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 10:31:26 +03:00
feat: transcript button in log channel
This commit is contained in:
22
src/buttons/transcript.js
Normal file
22
src/buttons/transcript.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const { Button } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class ClaimButton extends Button {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
id: 'transcript',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {*} id
|
||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||
*/
|
||||
async run(id, interaction) {
|
||||
/** @type {import("client")} */
|
||||
const client = this.client;
|
||||
|
||||
const cmd = client.commands.commands.slash.get('transcript');
|
||||
return await cmd.run(interaction, id.ticket);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user