Skip to content

Commit

Permalink
fix ticket register
Browse files Browse the repository at this point in the history
  • Loading branch information
GrishMahat committed Aug 8, 2024
1 parent 57bb514 commit 31a690e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/commands/ticket/ticketSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
} from 'discord.js';
import ticketSetupSchema from '../../schemas/ticketSetupSchema.js';

const TICKET_TYPES = ['button', 'select'];

export default {
data: new SlashCommandBuilder()
.setName('ticket')
Expand Down Expand Up @@ -52,14 +50,13 @@ export default {
.setName('ticket-type')
.setDescription('How tickets will be created')
.addChoices(
...TICKET_TYPES.map((type) => ({
name: type.charAt(0).toUpperCase() + type.slice(1),
value: type,
}))
{ name: 'Modal', value: 'modal' },
{ name: 'Button', value: 'button' }
)
.setRequired(true)
)
)

)
.addSubcommand((subcommand) =>
subcommand
.setName('update')
Expand Down

0 comments on commit 31a690e

Please sign in to comment.