From d00b2d820e552e3e710bb5ba9ec3c0e42c5a25f5 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Wed, 18 Oct 2023 21:29:04 +0200 Subject: [PATCH 1/2] fix: deprecated enums by discord.js --- plugins/nsfwOnly.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/nsfwOnly.ts b/plugins/nsfwOnly.ts index a0ae9e4..d01a53d 100644 --- a/plugins/nsfwOnly.ts +++ b/plugins/nsfwOnly.ts @@ -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) { From a2e444e7437ac2f796e1ca71d155a88566570fb8 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:42:59 +0200 Subject: [PATCH 2/2] chore: change version --- plugins/nsfwOnly.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nsfwOnly.ts b/plugins/nsfwOnly.ts index d01a53d..38afb7c 100644 --- a/plugins/nsfwOnly.ts +++ b/plugins/nsfwOnly.ts @@ -5,7 +5,7 @@ * * @author @Benzo-Fury [<@762918086349029386>] * @author @SrIzan10 [<@703974042700611634>] - * @version 1.0.0 + * @version 1.0.1 * @example * ```ts * import { nsfwOnly } from "../plugins/nsfwOnly";