From 1a3857675c9de1e210e03c69fa18c2ff775d3ea2 Mon Sep 17 00:00:00 2001 From: Danya H Date: Tue, 11 Jun 2024 19:14:42 +0100 Subject: [PATCH] fix --- src/commands/admin/help.ts | 8 ++++---- src/commands/admin/remove-active-ticket.ts | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/commands/admin/help.ts b/src/commands/admin/help.ts index a181bf6..1a682c4 100644 --- a/src/commands/admin/help.ts +++ b/src/commands/admin/help.ts @@ -2,13 +2,13 @@ import { Discord, Slash } from 'discordx' import { CommandInteraction, EmbedBuilder } from 'discord.js' @Discord() -export class Payments { +export class Help { @Slash({ - name: 'payments', - description: 'See available payments', + name: 'help', + description: 'See available commands', defaultMemberPermissions: 'Administrator', }) - async payments(interaction: CommandInteraction) { + async help(interaction: CommandInteraction) { await interaction.deferReply({ ephemeral: true }) const embed = new EmbedBuilder().setTitle(`Commands`).setFields([ diff --git a/src/commands/admin/remove-active-ticket.ts b/src/commands/admin/remove-active-ticket.ts index 71bf87f..f3b5be0 100644 --- a/src/commands/admin/remove-active-ticket.ts +++ b/src/commands/admin/remove-active-ticket.ts @@ -1,4 +1,4 @@ -import { Discord, Slash, SlashChoice, SlashOption } from 'discordx' +import { Discord, Slash, SlashOption } from 'discordx' import { ApplicationCommandOptionType, CommandInteraction, @@ -7,7 +7,6 @@ import { import { db, DBTableEnum } from '../../db' import { logger } from '../../lib' -import { feedbackEmbed } from '../../utils' type Ticket = { user: string @@ -21,7 +20,7 @@ export class RemoveActiveTicket { description: 'Remove user from database in case of need', defaultMemberPermissions: 'Administrator', }) - async feedback( + async removeActiveTicket( @SlashOption({ name: 'user', description: 'User to be removed',