aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
commit80d5b5b11ae261945dc725a0a80115922003afcf (patch)
tree16c9f251b4d53456b4b5340c0203d35fd5870859 /src/lib/utils
parentcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff)
downloadtanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip
refactor: this.client -> client
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/BushLogger.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts
index 3069dc8..d0c482f 100644
--- a/src/lib/utils/BushLogger.ts
+++ b/src/lib/utils/BushLogger.ts
@@ -8,7 +8,7 @@ import { BushClient, BushSendMessageType } from '../extensions/discord-akairo/Bu
export class BushLogger {
private client: BushClient;
public constructor(client: BushClient) {
- this.client = client;
+ client = client;
}
private parseFormatting(
@@ -86,7 +86,7 @@ export class BushLogger {
* @param depth - The depth the content will inspected. Defaults to 0.
*/
public debug(content: any, depth = 0): void {
- if (!this.client.config.isDevelopment) return;
+ if (!client.config.isDevelopment) return;
const newContent = this.inspectContent(content, depth, true);
console.log(`${chalk.bgMagenta(this.getTimeStamp())} ${chalk.magenta('[Debug]')}`, newContent);
}
@@ -96,7 +96,7 @@ export class BushLogger {
* @param content - The content to log.
*/
public debugRaw(...content: any): void {
- if (!this.client.config.isDevelopment) return;
+ if (!client.config.isDevelopment) return;
console.log(`${chalk.bgMagenta(this.getTimeStamp())} ${chalk.magenta('[Debug]')}`, ...content);
}
@@ -108,7 +108,7 @@ export class BushLogger {
* @param depth - The depth the content will inspected. Defaults to 0.
*/
public async verbose(header: string, content: any, sendChannel = false, depth = 0): Promise<void> {
- if (!this.client.config.logging.verbose) return;
+ if (!client.config.logging.verbose) return;
const newContent = this.inspectContent(content, depth, true);
console.info(
`${chalk.bgGrey(this.getTimeStamp())} ${chalk.grey(`[${header}]`)} ` + this.parseFormatting(newContent, 'blackBright')
@@ -129,7 +129,7 @@ export class BushLogger {
* @param depth - The depth the content will inspected. Defaults to 0.
*/
public async info(header: string, content: any, sendChannel = true, depth = 0): Promise<void> {
- if (!this.client.config.logging.info) return;
+ if (!client.config.logging.info) return;
const newContent = this.inspectContent(content, depth, true);
console.info(
`${chalk.bgCyan(this.getTimeStamp())} ${chalk.cyan(`[${header}]`)} ` + this.parseFormatting(newContent, 'blueBright')