From ed59b7f1827ab93573b079144c3eeaa01ce40492 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 26 Oct 2021 20:07:19 -0400 Subject: clean up, bug fixes --- src/lib/utils/BushLogger.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/utils') diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts index f00c19c..2aaba5b 100644 --- a/src/lib/utils/BushLogger.ts +++ b/src/lib/utils/BushLogger.ts @@ -62,7 +62,7 @@ export class BushLogger { } /** Sends a message to the log channel */ - public static async channelLog(message: BushSendMessageType): Promise { + public static async channelLog(message: BushSendMessageType) { const channel = await util.getConfigChannel('log'); await channel.send(message).catch(() => {}); } @@ -100,7 +100,7 @@ export class BushLogger { * @param sendChannel - Should this also be logged to discord? Defaults to false. * @param depth - The depth the content will inspected. Defaults to 0. */ - public static async verbose(header: string, content: any, sendChannel = false, depth = 0): Promise { + public static async verbose(header: string, content: any, sendChannel = false, depth = 0) { if (!client.config.logging.verbose) return; const newContent = this.#inspectContent(content, depth, true); console.info( @@ -121,7 +121,7 @@ export class BushLogger { * @param sendChannel - Should this also be logged to discord? Defaults to false. * @param depth - The depth the content will inspected. Defaults to 0. */ - public static async info(header: string, content: any, sendChannel = true, depth = 0): Promise { + public static async info(header: string, content: any, sendChannel = true, depth = 0) { if (!client.config.logging.info) return; const newContent = this.#inspectContent(content, depth, true); console.info( @@ -142,7 +142,7 @@ export class BushLogger { * @param sendChannel - Should this also be logged to discord? Defaults to false. * @param depth - The depth the content will inspected. Defaults to 0. */ - public static async warn(header: string, content: any, sendChannel = true, depth = 0): Promise { + public static async warn(header: string, content: any, sendChannel = true, depth = 0) { const newContent = this.#inspectContent(content, depth, true); console.warn( `${chalk.bgYellow(this.#getTimeStamp())} ${chalk.yellow(`[${header}]`)} ${this.#parseFormatting( @@ -166,7 +166,7 @@ export class BushLogger { * @param sendChannel - Should this also be logged to discord? Defaults to false. * @param depth - The depth the content will inspected. Defaults to 0. */ - public static async error(header: string, content: any, sendChannel = true, depth = 0): Promise { + public static async error(header: string, content: any, sendChannel = true, depth = 0) { const newContent = this.#inspectContent(content, depth, true); console.error( `${chalk.bgRedBright(this.#getTimeStamp())} ${chalk.redBright(`[${header}]`)} ${this.#parseFormatting( @@ -190,7 +190,7 @@ export class BushLogger { * @param sendChannel - Should this also be logged to discord? Defaults to false. * @param depth - The depth the content will inspected. Defaults to 0. */ - public static async success(header: string, content: any, sendChannel = true, depth = 0): Promise { + public static async success(header: string, content: any, sendChannel = true, depth = 0) { const newContent = this.#inspectContent(content, depth, true); console.log( `${chalk.bgGreen(this.#getTimeStamp())} ${chalk.greenBright(`[${header}]`)} ${this.#parseFormatting( -- cgit