fix: deprecated enums by discord.js

This commit is contained in:
2023-10-18 21:29:04 +02:00
committed by GitHub
parent d823415a69
commit d00b2d820e

View File

@@ -4,6 +4,7 @@
* This plugin checks if the channel is nsfw and responds to user with a specified response if not nsfw
*
* @author @Benzo-Fury [<@762918086349029386>]
* @author @SrIzan10 [<@703974042700611634>]
* @version 1.0.0
* @example
* ```ts
@@ -29,8 +30,8 @@ function isGuildText(
channel: TextBasedChannel | null,
): channel is GuildTextBasedChannel {
return (
channel?.type == ChannelType.GuildPublicThread ||
channel?.type == ChannelType.GuildPrivateThread
channel?.type == ChannelType.PublicThread ||
channel?.type == ChannelType.PrivateThread
);
}
export function nsfwOnly(onFail: string, ephemeral: boolean) {