From 6974a5859658b966954a59411a800223b7542df8 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 28 Jun 2021 18:54:18 -0400 Subject: fix breaking changes and bump dependencies --- src/lib/extensions/BushClient.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/lib/extensions/BushClient.ts') diff --git a/src/lib/extensions/BushClient.ts b/src/lib/extensions/BushClient.ts index 73b0864..8dd8277 100644 --- a/src/lib/extensions/BushClient.ts +++ b/src/lib/extensions/BushClient.ts @@ -1,6 +1,16 @@ import chalk from 'chalk'; import { AkairoClient } from 'discord-akairo'; -import { APIMessage, Guild, Intents, Message, MessageOptions, Snowflake, UserResolvable } from 'discord.js'; +import { + Guild, + Intents, + Message, + MessageEditOptions, + MessageOptions, + MessagePayload, + ReplyMessageOptions, + Snowflake, + UserResolvable +} from 'discord.js'; import * as path from 'path'; import { exit } from 'process'; import readline from 'readline'; @@ -20,7 +30,9 @@ import { BushListenerHandler } from './BushListenerHandler'; import { BushTaskHandler } from './BushTaskHandler'; export type BotConfig = typeof config; -export type BushMessageType = string | APIMessage | (MessageOptions & { split?: false }); +export type BushReplyMessageType = string | MessagePayload | ReplyMessageOptions; +export type BushEditMessageType = string | MessageEditOptions | MessagePayload; +export type BushSendMessageType = string | MessagePayload | MessageOptions; const rl = readline.createInterface({ input: process.stdin, -- cgit