chore: update to discord.js 13.7.0

This commit is contained in:
Dragory 2022-06-01 19:26:43 +03:00
parent 6df67da3cb
commit 5387d4a82a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 135 additions and 76 deletions

View file

@ -1,4 +1,11 @@
import { Message, MessageOptions, NewsChannel, TextChannel, WebhookClient } from "discord.js";
import {
Message,
MessageEditOptions,
NewsChannel,
TextChannel,
WebhookClient,
WebhookEditMessageOptions,
} from "discord.js";
import { GuildPluginData } from "knub";
import { InternalPosterPluginType } from "../types";
import { isDiscordAPIError, noop } from "../../../utils";
@ -9,7 +16,7 @@ import { isDiscordAPIError, noop } from "../../../utils";
export async function editMessage(
pluginData: GuildPluginData<InternalPosterPluginType>,
message: Message,
content: MessageOptions,
content: MessageEditOptions & WebhookEditMessageOptions,
): Promise<void> {
if (!(message.channel instanceof TextChannel || message.channel instanceof NewsChannel)) {
return;