mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
channel typings
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
c33a216857
commit
8347095fa0
15 changed files with 91 additions and 103 deletions
|
@ -2,7 +2,15 @@
|
|||
* @file Utility functions that are plugin-instance-specific (i.e. use PluginData)
|
||||
*/
|
||||
|
||||
import { GuildMember, Message, MessageMentionOptions, MessageOptions, TextChannel } from "discord.js";
|
||||
import {
|
||||
GuildMember,
|
||||
GuildTextBasedChannel,
|
||||
Message,
|
||||
MessageMentionOptions,
|
||||
MessageOptions,
|
||||
TextBasedChannel,
|
||||
TextChannel,
|
||||
} from "discord.js";
|
||||
import * as t from "io-ts";
|
||||
import { CommandContext, configUtils, ConfigValidationError, GuildPluginData, helpers, PluginOptions } from "knub";
|
||||
import { PluginOverrideCriteria } from "knub/dist/config/configTypes";
|
||||
|
@ -209,7 +217,7 @@ export async function sendSuccessMessage(
|
|||
|
||||
export async function sendErrorMessage(
|
||||
pluginData: AnyPluginData<any>,
|
||||
channel: TextChannel,
|
||||
channel: GuildTextBasedChannel,
|
||||
body: string,
|
||||
allowedMentions?: MessageMentionOptions,
|
||||
): Promise<Message | undefined> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue