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' import { CommandInteraction, EmbedBuilder } from 'discord.js'
@Discord() @Discord()
export class Payments { export class Help {
@Slash({ @Slash({
name: 'payments', name: 'help',
description: 'See available payments', description: 'See available commands',
defaultMemberPermissions: 'Administrator', defaultMemberPermissions: 'Administrator',
}) })
async payments(interaction: CommandInteraction) { async help(interaction: CommandInteraction) {
await interaction.deferReply({ ephemeral: true }) await interaction.deferReply({ ephemeral: true })
const embed = new EmbedBuilder().setTitle(`Commands`).setFields([ 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 { import {
ApplicationCommandOptionType, ApplicationCommandOptionType,
CommandInteraction, CommandInteraction,
@ -7,7 +7,6 @@ import {
import { db, DBTableEnum } from '../../db' import { db, DBTableEnum } from '../../db'
import { logger } from '../../lib' import { logger } from '../../lib'
import { feedbackEmbed } from '../../utils'
type Ticket = { type Ticket = {
user: string user: string
@ -21,7 +20,7 @@ export class RemoveActiveTicket {
description: 'Remove user from database in case of need', description: 'Remove user from database in case of need',
defaultMemberPermissions: 'Administrator', defaultMemberPermissions: 'Administrator',
}) })
async feedback( async removeActiveTicket(
@SlashOption({ @SlashOption({
name: 'user', name: 'user',
description: 'User to be removed', description: 'User to be removed',