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;