Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-19 10:51:53 +02:00
parent d4c9b8d1cb
commit d0a3bb75ee
1 changed files with 5 additions and 1 deletions

View File

@ -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;