diff options
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 7 |
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. */ |