diff options
| author | Tiago Grosso <[email protected]> | 2024-08-23 21:38:50 +0100 |
|---|---|---|
| committer | Tiago Grosso <[email protected]> | 2024-08-23 21:38:50 +0100 |
| commit | c46153f62086a06fe6aedf240bfec9f264295565 (patch) | |
| tree | 083f7f5bc409211a71e5e00ba7d591ce0daebe60 | |
| parent | 6e39c8d09ed8f7460f54fb766efddd507f368523 (diff) | |
| download | muse-c46153f62086a06fe6aedf240bfec9f264295565.tar.xz muse-c46153f62086a06fe6aedf240bfec9f264295565.zip | |
fix: fix page-size option name
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | src/commands/queue.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 466f229..7630ee4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added -- An optional `pageSize` to `/queue` command +- An optional `page-size` to `/queue` command ## [2.9.3] - 2024-08-19 diff --git a/src/commands/queue.ts b/src/commands/queue.ts index dcc674a..d627c7f 100644 --- a/src/commands/queue.ts +++ b/src/commands/queue.ts @@ -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]}); |
