From 8e7e12c8dfa39d4ce779b8fdcbdfd0cfe7425269 Mon Sep 17 00:00:00 2001
From: Tiago Grosso <tiagogrosso99@gmail.com>
Date: Tue, 27 Aug 2024 11:11:43 +0100
Subject: [PATCH] fix: limit queue size to 30

---
 src/commands/config.ts | 2 +-
 src/commands/queue.ts  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/commands/config.ts b/src/commands/config.ts
index c9aa0e3..91b2578 100644
--- a/src/commands/config.ts
+++ b/src/commands/config.ts
@@ -63,7 +63,7 @@ export default class implements Command {
         .setName('page-size')
         .setDescription('page size of the /queue command')
         .setMinValue(1)
-        .setMaxValue(50)
+        .setMaxValue(30)
         .setRequired(true)))
     .addSubcommand(subcommand => subcommand
       .setName('get')
diff --git a/src/commands/queue.ts b/src/commands/queue.ts
index 60472b0..fd3674a 100644
--- a/src/commands/queue.ts
+++ b/src/commands/queue.ts
@@ -20,7 +20,7 @@ export default class implements Command {
       .setName('page-size')
       .setDescription('how many items to display per page [default: 10, max: 50]')
       .setMinValue(1)
-      .setMaxValue(50)
+      .setMaxValue(30)
       .setRequired(false));
 
   private readonly playerManager: PlayerManager;