This commit is contained in:
Danya H 2024-06-11 19:14:42 +01:00
parent 849d98afda
commit 1a3857675c
2 changed files with 6 additions and 7 deletions

View File

@ -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([

View File

@ -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',