Skip to content

Commit

Permalink
Set queue name size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrowM committed Jun 26, 2024
1 parent 319882b commit ea638ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/commands/queues.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class QueuesCommand extends AdminCommand {
static async queues_add(inter: SlashInteraction) {
const queue = {
guildId: inter.guildId,
name: QueuesCommand.ADD_OPTIONS.name.get(inter),
name: QueuesCommand.ADD_OPTIONS.name.get(inter).substring(0, 255),
...omitBy({
autopullToggle: QueuesCommand.ADD_OPTIONS.autopullToggle.get(inter),
badgeToggle: QueuesCommand.ADD_OPTIONS.badgeToggle.get(inter),
Expand Down Expand Up @@ -219,7 +219,7 @@ export class QueuesCommand extends AdminCommand {
inlineToggle: QueuesCommand.SET_OPTIONS.inlineToggle.get(inter),
lockToggle: QueuesCommand.SET_OPTIONS.lockToggle.get(inter),
memberDisplayType: QueuesCommand.SET_OPTIONS.memberDisplayType.get(inter),
name: QueuesCommand.SET_OPTIONS.name.get(inter),
name: QueuesCommand.SET_OPTIONS.name.get(inter).substring(0, 255),
notificationsToggle: QueuesCommand.SET_OPTIONS.notificationsToggle.get(inter),
pullBatchSize: QueuesCommand.SET_OPTIONS.pullBatchSize.get(inter),
pullMessage: QueuesCommand.SET_OPTIONS.pullMessage.get(inter),
Expand Down

0 comments on commit ea638ac

Please sign in to comment.