lib
This commit is contained in:
parent
972ce0fc74
commit
9636cb07da
|
@ -2114,7 +2114,7 @@
|
||||||
|
|
||||||
BDFDB.ChannelUtils = {};
|
BDFDB.ChannelUtils = {};
|
||||||
BDFDB.ChannelUtils.isTextChannel = function (channel) {
|
BDFDB.ChannelUtils.isTextChannel = function (channel) {
|
||||||
return channel && channel.type && (channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_TEXT || channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_STORE || channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_ANNOUNCEMENT);
|
return BDFDB.ObjectUtils.is(channel) && (channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_TEXT || channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_STORE || channel.type == BDFDB.DiscordConstants.ChannelTypes.GUILD_ANNOUNCEMENT);
|
||||||
};
|
};
|
||||||
BDFDB.ChannelUtils.getId = function (div) {
|
BDFDB.ChannelUtils.getId = function (div) {
|
||||||
if (!Node.prototype.isPrototypeOf(div) || !BDFDB.ReactUtils.getInstance(div)) return;
|
if (!Node.prototype.isPrototypeOf(div) || !BDFDB.ReactUtils.getInstance(div)) return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue