aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/ConfirmationPrompt.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-19 16:59:49 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-19 16:59:49 -0400
commitf580e41111a9332a4a74b63118dc94efa216c388 (patch)
tree97af802a74d7d03a0d850b98c1de1ef8612cc3bb /src/lib/common/ConfirmationPrompt.ts
parente99cc791200d1ae24b2bb99dfd80aa0c5e7f4c52 (diff)
downloadtanzanite-f580e41111a9332a4a74b63118dc94efa216c388.tar.gz
tanzanite-f580e41111a9332a4a74b63118dc94efa216c388.tar.bz2
tanzanite-f580e41111a9332a4a74b63118dc94efa216c388.zip
refactoring and spelling fixes
Diffstat (limited to 'src/lib/common/ConfirmationPrompt.ts')
-rw-r--r--src/lib/common/ConfirmationPrompt.ts20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/lib/common/ConfirmationPrompt.ts b/src/lib/common/ConfirmationPrompt.ts
index 38d078a..4bea092 100644
--- a/src/lib/common/ConfirmationPrompt.ts
+++ b/src/lib/common/ConfirmationPrompt.ts
@@ -6,20 +6,10 @@ import { ActionRowBuilder, ButtonBuilder, ButtonStyle, type MessageComponentInte
*/
export class ConfirmationPrompt {
/**
- * @param message The message to respond to
- * @param messageOptions The send message options
+ * @param message The message that triggered the command
+ * @param messageOptions Options for sending the message
*/
- protected constructor(
- /**
- * The message that triggered the command
- */
- protected message: CommandMessage | SlashMessage,
-
- /**
- * Options for sending the message
- */
- protected messageOptions: MessageOptions
- ) {}
+ protected constructor(protected message: CommandMessage | SlashMessage, protected messageOptions: MessageOptions) {}
/**
* Sends a message with buttons for the user to confirm or cancel the action.
@@ -65,8 +55,8 @@ export class ConfirmationPrompt {
/**
* Sends a message with buttons for the user to confirm or cancel the action.
- * @param message The message to respond to
- * @param options The send message options
+ * @param message The message that triggered the command
+ * @param sendOptions Options for sending the message
*/
public static async send(message: CommandMessage | SlashMessage, sendOptions: MessageOptions): Promise<boolean> {
return new ConfirmationPrompt(message, sendOptions).send();