From d0a3bb75ee14d8ec42627938f0f8ee34bc674739 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 19 Sep 2022 10:51:53 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 35a237155b..d720223d3c 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 2.5.9 + * @version 2.6.0 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -3320,6 +3320,10 @@ module.exports = (_ => { let channel = typeof channelOrId == "string" ? Internal.LibraryModules.ChannelStore.getChannel(channelOrId) : channelOrId; return channel && channel.isThread(); }; + BDFDB.ChannelUtils.isForumPost = function (channelOrId) { + let channel = typeof channelOrId == "string" ? Internal.LibraryModules.ChannelStore.getChannel(channelOrId) : channelOrId; + return channel && channel.parentChannelThreadType && channel.parentChannelThreadType == BDFDB.DiscordConstants.ChannelTypes.GUILD_FORUM; + }; BDFDB.ChannelUtils.isEvent = function (channelOrId) { let channel = typeof channelOrId == "string" ? Internal.LibraryModules.GuildEventStore.getGuildScheduledEvent(channelOrId) : channelOrId; return channel && Internal.LibraryModules.GuildEventStore.getGuildScheduledEvent(channel.id) && true;