fix: limit queue size to 30

This commit is contained in:
Tiago Grosso 2024-08-27 11:11:43 +01:00
parent 0912d95791
commit 8e7e12c8df
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ export default class implements Command {
.setName('page-size') .setName('page-size')
.setDescription('page size of the /queue command') .setDescription('page size of the /queue command')
.setMinValue(1) .setMinValue(1)
.setMaxValue(50) .setMaxValue(30)
.setRequired(true))) .setRequired(true)))
.addSubcommand(subcommand => subcommand .addSubcommand(subcommand => subcommand
.setName('get') .setName('get')

View file

@ -20,7 +20,7 @@ export default class implements Command {
.setName('page-size') .setName('page-size')
.setDescription('how many items to display per page [default: 10, max: 50]') .setDescription('how many items to display per page [default: 10, max: 50]')
.setMinValue(1) .setMinValue(1)
.setMaxValue(50) .setMaxValue(30)
.setRequired(false)); .setRequired(false));
private readonly playerManager: PlayerManager; private readonly playerManager: PlayerManager;