aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-20 18:41:46 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-20 18:41:46 -0400
commitc1dfab0d98bea399c2cb2f43f211396a687fab38 (patch)
treeea01b937b17b90c0e8780eff09e0fbf7c13fd575 /src/lib/extensions/discord-akairo
parentf01be2e3ce820e5737416180efa3e5852ece72c4 (diff)
downloadtanzanite-c1dfab0d98bea399c2cb2f43f211396a687fab38.tar.gz
tanzanite-c1dfab0d98bea399c2cb2f43f211396a687fab38.tar.bz2
tanzanite-c1dfab0d98bea399c2cb2f43f211396a687fab38.zip
fix: use correct variable
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index 6516161..1e6418c 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -238,7 +238,7 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
const modify: PromptContentModifier = async (message, text, data) => {
const ending = '\n\n Type **cancel** to cancel the command';
const options = typeof text === 'function' ? await text(message, data) : text;
- if (typeof options === 'string') return text + ending;
+ if (typeof options === 'string') return options + ending;
if (options instanceof MessagePayload) {
if (options.options.content) options.options.content += ending;
} else options.content += ending;