mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
update discord.js
This commit is contained in:
parent
ba78103807
commit
ed4ba06f82
14 changed files with 81 additions and 104 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Message, MessageAttachment, MessageOptions, NewsChannel, TextChannel, ThreadChannel } from "discord.js";
|
||||
import { GuildTextBasedChannel, Message, MessageOptions, MessageAttachment } from "discord.js";
|
||||
import fs from "fs";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { downloadFile } from "../../../utils";
|
||||
|
@ -9,7 +9,7 @@ const fsp = fs.promises;
|
|||
|
||||
export async function postMessage(
|
||||
pluginData: GuildPluginData<PostPluginType>,
|
||||
channel: TextChannel | NewsChannel | ThreadChannel,
|
||||
channel: GuildTextBasedChannel,
|
||||
content: MessageOptions,
|
||||
attachments: MessageAttachment[] = [],
|
||||
enableMentions: boolean = false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue