mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: solve bug using getNumber after changing to addIntegerOption
This commit is contained in:
1 parent
6ca7ce3e4b
commit
4b630e2512
8 files changed
+8
-8
No files matched your search
@@ -189,7 +189,7 @@ class ShardsCommand extends BaseSlashCommandInteraction {
|
||||
}
|
||||
|
||||
private getPageIndex(interaction: ChatInputCommandInteraction): number {
|
||||
return (interaction.options.getNumber('page') || 1) - 1;
|
||||
return (interaction.options.getInteger('page') || 1) - 1;
|
||||
}
|
||||
|
||||
private getTotalPages(shardCount: number): number {
|
||||
|
||||
Reference in new issue
Block a user