Skip to content

Commit

Permalink
fix: fix page-size option name
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoGrosso committed Aug 23, 2024
1 parent 6e39c8d commit c46153f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/commands/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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]});
Expand Down

0 comments on commit c46153f

Please sign in to comment.