diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:16:32 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:16:32 -0500 |
commit | fc390ffc300334c396d9d06b0feaf8fbc6ed2814 (patch) | |
tree | a6282a74cf99033291ac7bc9de123ae273d528d2 /src/listeners/client | |
parent | 062435590980b87f5b054418ed88604e26358ae9 (diff) | |
download | tanzanite-fc390ffc300334c396d9d06b0feaf8fbc6ed2814.tar.gz tanzanite-fc390ffc300334c396d9d06b0feaf8fbc6ed2814.tar.bz2 tanzanite-fc390ffc300334c396d9d06b0feaf8fbc6ed2814.zip |
documentation, bug fixes etc
Diffstat (limited to 'src/listeners/client')
-rw-r--r-- | src/listeners/client/dcjsDebug.ts | 15 | ||||
-rw-r--r-- | src/listeners/client/dcjsError.ts | 15 | ||||
-rw-r--r-- | src/listeners/client/dcjsWarn.ts | 15 |
3 files changed, 45 insertions, 0 deletions
diff --git a/src/listeners/client/dcjsDebug.ts b/src/listeners/client/dcjsDebug.ts new file mode 100644 index 0000000..52406c1 --- /dev/null +++ b/src/listeners/client/dcjsDebug.ts @@ -0,0 +1,15 @@ +import { BushListener, type BushClientEvents } from '#lib'; + +export default class DiscordJsDebugListener extends BushListener { + public constructor() { + super('discordJsDebug', { + emitter: 'client', + event: 'debug', + category: 'client' + }); + } + + public override async exec(...[message]: BushClientEvents['debug']): Promise<void> { + void client.console.superVerbose('dc.js-debug', message); + } +} diff --git a/src/listeners/client/dcjsError.ts b/src/listeners/client/dcjsError.ts new file mode 100644 index 0000000..4908720 --- /dev/null +++ b/src/listeners/client/dcjsError.ts @@ -0,0 +1,15 @@ +import { BushListener, type BushClientEvents } from '#lib'; + +export default class DiscordJsErrorListener extends BushListener { + public constructor() { + super('discordJsError', { + emitter: 'client', + event: 'error', + category: 'client' + }); + } + + public override async exec(...[error]: BushClientEvents['error']): Promise<void> { + void client.console.superVerbose('dc.js-error', error); + } +} diff --git a/src/listeners/client/dcjsWarn.ts b/src/listeners/client/dcjsWarn.ts new file mode 100644 index 0000000..cc2b30f --- /dev/null +++ b/src/listeners/client/dcjsWarn.ts @@ -0,0 +1,15 @@ +import { BushListener, type BushClientEvents } from '#lib'; + +export default class DiscordJsWarnListener extends BushListener { + public constructor() { + super('discordJsWarn', { + emitter: 'client', + event: 'warn', + category: 'client' + }); + } + + public override async exec(...[message]: BushClientEvents['warn']): Promise<void> { + void client.console.superVerbose('dc.js-warn', message); + } +} |