From 661e4c9935aeb8760dafc7ced4bbec6cc356a033 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 14 Jun 2022 12:47:57 -0400 Subject: remove the war crimes that I previously committed - Remove custom typings and replace with declaration merging - Fix the typings for args - Replace all discord-api-types imports with discord.js imports - Fix discord.js breaking changes --- src/lib/utils/BushLogger.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/utils') diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts index 91c23d3..073b8e2 100644 --- a/src/lib/utils/BushLogger.ts +++ b/src/lib/utils/BushLogger.ts @@ -4,7 +4,7 @@ import { EmbedBuilder, Util, type Message, type PartialTextBasedChannelFields } import repl, { REPLServer, REPL_MODE_STRICT } from 'repl'; import { WriteStream } from 'tty'; import { inspect } from 'util'; -import { type BushSendMessageType } from '../extensions/discord-akairo/BushClient.js'; +import { type SendMessageType } from '../extensions/discord-akairo/BushClient.js'; let REPL: REPLServer; let replGone = false; @@ -147,7 +147,7 @@ export class BushLogger { * @param message The parameter to pass to {@link PartialTextBasedChannelFields.send}. * @returns The message sent. */ - public static async channelLog(message: BushSendMessageType): Promise { + public static async channelLog(message: SendMessageType): Promise { const channel = await util.getConfigChannel('log'); return await channel.send(message).catch(() => null); } @@ -157,7 +157,7 @@ export class BushLogger { * @param message The parameter to pass to {@link PartialTextBasedChannelFields.send}. * @returns The message sent. */ - public static async channelError(message: BushSendMessageType): Promise { + public static async channelError(message: SendMessageType): Promise { const channel = await util.getConfigChannel('error'); if (!channel) { void this.error( -- cgit