diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-19 16:59:49 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-19 16:59:49 -0400 |
commit | f580e41111a9332a4a74b63118dc94efa216c388 (patch) | |
tree | 97af802a74d7d03a0d850b98c1de1ef8612cc3bb /src/lib/common/ButtonPaginator.ts | |
parent | e99cc791200d1ae24b2bb99dfd80aa0c5e7f4c52 (diff) | |
download | tanzanite-f580e41111a9332a4a74b63118dc94efa216c388.tar.gz tanzanite-f580e41111a9332a4a74b63118dc94efa216c388.tar.bz2 tanzanite-f580e41111a9332a4a74b63118dc94efa216c388.zip |
refactoring and spelling fixes
Diffstat (limited to 'src/lib/common/ButtonPaginator.ts')
-rw-r--r-- | src/lib/common/ButtonPaginator.ts | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/lib/common/ButtonPaginator.ts b/src/lib/common/ButtonPaginator.ts index 708b374..ed6743e 100644 --- a/src/lib/common/ButtonPaginator.ts +++ b/src/lib/common/ButtonPaginator.ts @@ -25,31 +25,16 @@ export class ButtonPaginator { protected sentMessage: Message | undefined; /** - * @param message The message to respond to + * @param message The message that triggered the command * @param embeds The embeds to switch between - * @param text The text send with the embeds (optional) - * @param deleteOnExit Whether to delete the message when the exit button is clicked (defaults to true) + * @param text The optional text to send with the paginator + * @param {} [deleteOnExit=true] Whether the paginator message gets deleted when the exit button is pressed * @param startOn The page to start from (**not** the index) */ protected constructor( - /** - * The message that triggered the command - */ protected message: CommandMessage | SlashMessage, - - /** - * The embeds to paginate - */ protected embeds: EmbedBuilder[] | APIEmbed[], - - /** - * The optional text to send with the paginator - */ protected text: string | null, - - /** - * Whether the paginator message gets deleted when the exit button is pressed - */ protected deleteOnExit: boolean, startOn: number ) { |