From c1dfab0d98bea399c2cb2f43f211396a687fab38 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:41:46 -0400 Subject: fix: use correct variable --- src/lib/extensions/discord-akairo/BushClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/extensions/discord-akairo') 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 extends AkairoClient { 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; -- cgit