aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-08 19:53:26 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-08 19:53:26 -0500
commit2cad871192107bbf36e5df8a9ade159312edbc91 (patch)
treed2788156203abb00cbc8657f6e43d4bb61e0f337 /src/lib
parenta9b27cc0a23d397e9bf88c0d34ce02e5f7fbe377 (diff)
downloadtanzanite-2cad871192107bbf36e5df8a9ade159312edbc91.tar.gz
tanzanite-2cad871192107bbf36e5df8a9ade159312edbc91.tar.bz2
tanzanite-2cad871192107bbf36e5df8a9ade159312edbc91.zip
feat(eval): stop using unicode emojis
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts
index a3ddfed..5ffed75 100644
--- a/src/lib/extensions/discord-akairo/BushClientUtil.ts
+++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts
@@ -17,6 +17,7 @@ import {
type PronounCode
} from '#lib';
import { humanizeDuration } from '@notenoughupdates/humanize-duration';
+import assert from 'assert';
import { exec } from 'child_process';
import deepLock from 'deep-lock';
import { ClientUtil, Util as AkairoUtil } from 'discord-akairo';
@@ -911,6 +912,12 @@ export class BushClientUtil extends ClientUtil {
).toString()}&permissions=${PermissionsBitField.All}&scope=bot%20applications.commands`;
}
+ public assertAll(...args: any[]): void {
+ for (let i = 0; i < args.length; i++) {
+ assert(args[i], `assertAll index ${i} failed`);
+ }
+ }
+
/**
* A wrapper for the Argument class that adds custom typings.
*/