mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 18:21:25 +03:00
feat: add ticket claiming
This commit is contained in:
@@ -13,7 +13,14 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||
*/
|
||||
async run(interaction) {
|
||||
// tickets/manager.js
|
||||
/** @type {import("client")} */
|
||||
const client = this.client;
|
||||
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.claim(interaction);
|
||||
}
|
||||
};
|
@@ -13,5 +13,14 @@ module.exports = class ReleaseSlashCommand extends SlashCommand {
|
||||
});
|
||||
}
|
||||
|
||||
async run(interaction) { }
|
||||
/**
|
||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||
*/
|
||||
async run(interaction) {
|
||||
/** @type {import("client")} */
|
||||
const client = this.client;
|
||||
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.release(interaction);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user