From fd86bbdd8529a3184218556b4a77462ef95d51d1 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 27 Jan 2022 14:31:12 +0700 Subject: [PATCH] Add PartialDMChannel --- src/utils/DiscordMessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/DiscordMessage.ts b/src/utils/DiscordMessage.ts index 4004aa7..d13300c 100644 --- a/src/utils/DiscordMessage.ts +++ b/src/utils/DiscordMessage.ts @@ -1,4 +1,4 @@ -import { MessageEmbed, User, MessagePayload, MessageOptions, GuildTextBasedChannel, TextChannel, DMChannel, BaseGuildTextChannel, Message, ColorResolvable, Interaction, InteractionReplyOptions } from "discord.js"; +import { MessageEmbed, User, MessagePayload, MessageOptions, GuildTextBasedChannel, TextChannel, DMChannel, PartialDMChannel, BaseGuildTextChannel, Message, ColorResolvable, Interaction, InteractionReplyOptions } from "discord.js"; import App from ".."; import Logger from "../libs/Logger"; @@ -55,7 +55,7 @@ export function makeInfoEmbed(options: any) { return makeEmbed(typeof options.icon === 'undefined' ? "🔮" : options.icon, options.title, options.description, '#C7CEEA', options.fields, options.user, options.setTimestamp || true); } -export async function sendMessage(channel: TextChannel | DMChannel | BaseGuildTextChannel | GuildTextBasedChannel, user: User | undefined, options: string | MessagePayload | MessageOptions) { +export async function sendMessage(channel: TextChannel | DMChannel | BaseGuildTextChannel | GuildTextBasedChannel | PartialDMChannel , user: User | undefined, options: string | MessagePayload | MessageOptions) { let message;