mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 09:12:43 +02:00
fix: fix page-size option name
This commit is contained in:
parent
6e39c8d09e
commit
c46153f620
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ export default class implements Command {
|
|||
.setDescription('page of queue to show [default: 1]')
|
||||
.setRequired(false))
|
||||
.addIntegerOption(option => option
|
||||
.setName('pageSize')
|
||||
.setName('page-size')
|
||||
.setDescription('how many items to display per page [default: 10]')
|
||||
.setRequired(false));
|
||||
|
||||
|
@ -32,7 +32,7 @@ export default class implements Command {
|
|||
const embed = buildQueueEmbed(
|
||||
player,
|
||||
interaction.options.getInteger('page') ?? 1,
|
||||
interaction.options.getInteger('pageSize') ?? 10,
|
||||
interaction.options.getInteger('page-size') ?? 10,
|
||||
);
|
||||
|
||||
await interaction.reply({embeds: [embed]});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue