chore: update to discord.js 13.7.0
This commit is contained in:
parent
6df67da3cb
commit
5387d4a82a
4 changed files with 135 additions and 76 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue