fix
This commit is contained in:
parent
849d98afda
commit
1a3857675c
@ -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([
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user