Skip to content

Commit

Permalink
fix: deprecated enums by discord.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 authored Oct 18, 2023
1 parent d823415 commit d00b2d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/nsfwOnly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit d00b2d8

Please sign in to comment.