mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
👌
This commit is contained in:
parent
6f535e7149
commit
e4b104eb7e
@ -28,10 +28,10 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
|
|||||||
/** @type {import("client")} */
|
/** @type {import("client")} */
|
||||||
const client = this.client;
|
const client = this.client;
|
||||||
|
|
||||||
|
await interaction.deferReply({ ephemeral: true });
|
||||||
const staff = await isStaff(interaction.guild, interaction.member.id);
|
const staff = await isStaff(interaction.guild, interaction.member.id);
|
||||||
const settings = await client.prisma.guild.findUnique({ where: { id: interaction.guild.id } });
|
const settings = await client.prisma.guild.findUnique({ where: { id: interaction.guild.id } });
|
||||||
const getMessage = client.i18n.getLocale(settings.locale);
|
const getMessage = client.i18n.getLocale(settings.locale);
|
||||||
await interaction.deferReply({ ephemeral: true });
|
|
||||||
const commands = (await client.application.commands.fetch())
|
const commands = (await client.application.commands.fetch())
|
||||||
.filter(c => c.type === 1)
|
.filter(c => c.type === 1)
|
||||||
.map(c => `> </${c.name}:${c.id}>: ${c.description}`)
|
.map(c => `> </${c.name}:${c.id}>: ${c.description}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user