aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BushClient.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
commit6974a5859658b966954a59411a800223b7542df8 (patch)
tree9f1b4eae137d3253e1530bd30b78ab73b985c9ca /src/lib/extensions/BushClient.ts
parentb581073e0deb4f96510d72001513db64f3cc01ab (diff)
downloadtanzanite-6974a5859658b966954a59411a800223b7542df8.tar.gz
tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.bz2
tanzanite-6974a5859658b966954a59411a800223b7542df8.zip
fix breaking changes and bump dependencies
Diffstat (limited to 'src/lib/extensions/BushClient.ts')
-rw-r--r--src/lib/extensions/BushClient.ts16
1 files changed, 14 insertions, 2 deletions
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,