This commit is contained in:
Mirco Wittrien 2018-12-20 22:54:42 +01:00
parent 462fbdfedb
commit 5fe319e225
37 changed files with 122 additions and 122 deletions

File diff suppressed because one or more lines are too long

View File

@ -120,9 +120,9 @@ class BadgesEverywhere {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.APIModule = BDFDB.WebModules.findByProperties(["getAPIBaseURL"]);
this.DiscordConstants = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes", "StatusTypes"]);
this.BadgeClasses = BDFDB.WebModules.findByProperties(["profileBadgeStaff","profileBadgePremium"]);
this.APIModule = BDFDB.WebModules.findByProperties("getAPIBaseURL");
this.DiscordConstants = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes", "StatusTypes");
this.BadgeClasses = BDFDB.WebModules.findByProperties("profileBadgeStaff","profileBadgePremium");
var observer = null;

View File

@ -78,9 +78,9 @@ class BetterFriendCount {
});
BDFDB.addObserver(this, BDFDB.dotCN.friendsonline, {name:"friendCountObserver",instance:observer}, {childList:true, subtree:true, characterData:true});
this.FriendUtils = BDFDB.WebModules.findByProperties(["getFriendIDs", "getRelationships"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatus", "getOnlineFriendCount"]);
var RelationshipTypes = BDFDB.WebModules.findByProperties(["RelationshipTypes"]).RelationshipTypes;
this.FriendUtils = BDFDB.WebModules.findByProperties("getFriendIDs", "getRelationships");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatus", "getOnlineFriendCount");
var RelationshipTypes = BDFDB.WebModules.findByProperties("RelationshipTypes").RelationshipTypes;
for (let type in RelationshipTypes) {
this.relationshipTypes[RelationshipTypes[type]] = type;
}

View File

@ -97,8 +97,8 @@ class BetterSearchPage {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.SearchNavigation = BDFDB.WebModules.findByProperties(["searchNextPage","searchPreviousPage"]);
this.SearchUtils = BDFDB.WebModules.findByProperties(["getCurrentSearchId"]);
this.SearchNavigation = BDFDB.WebModules.findByProperties("searchNextPage","searchPreviousPage");
this.SearchUtils = BDFDB.WebModules.findByProperties("getCurrentSearchId");
var observer = null;

View File

@ -83,9 +83,9 @@ class ChatAliases {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UploadModule = BDFDB.WebModules.findByProperties(["instantBatchUpload"]);
this.CurrentUserPerms = BDFDB.WebModules.findByProperties(["getChannelPermissions", "can"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions;
this.UploadModule = BDFDB.WebModules.findByProperties("instantBatchUpload");
this.CurrentUserPerms = BDFDB.WebModules.findByProperties("getChannelPermissions", "can");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions;
var observer = null;

View File

@ -140,7 +140,7 @@ class EditChannels {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.LastGuildStore = BDFDB.WebModules.findByProperties(["getLastSelectedGuildId"]);
this.LastGuildStore = BDFDB.WebModules.findByProperties("getLastSelectedGuildId");
var observer = null;

View File

@ -217,11 +217,11 @@ class EditUsers {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberPerms = BDFDB.WebModules.findByProperties(["getNicknames", "getNick"]);
this.TypingUtils = BDFDB.WebModules.findByProperties(["getTypingUsers"]);
this.LastGuildStore = BDFDB.WebModules.findByProperties(["getLastSelectedGuildId"]);
this.LastChannelStore = BDFDB.WebModules.findByProperties(["getLastSelectedChannelId"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberPerms = BDFDB.WebModules.findByProperties("getNicknames", "getNick");
this.TypingUtils = BDFDB.WebModules.findByProperties("getTypingUsers");
this.LastGuildStore = BDFDB.WebModules.findByProperties("getLastSelectedGuildId");
this.LastChannelStore = BDFDB.WebModules.findByProperties("getLastSelectedChannelId");
var observer = null;

View File

@ -234,7 +234,7 @@ class EmojiStatistics {
});
BDFDB.addObserver(this, BDFDB.dotCN.popouts, {name:"emojiPickerObserver",instance:observer}, {childList: true});
this.GuildEmojis = BDFDB.WebModules.findByProperties(["getGuildEmoji", "getDisambiguatedEmojiContext"]);
this.GuildEmojis = BDFDB.WebModules.findByProperties("getGuildEmoji", "getDisambiguatedEmojiContext");
}
else {
console.error(this.getName() + ": Fatal Error: Could not load BD functions!");

View File

@ -234,12 +234,12 @@ class FriendNotifications {
BDFDB.removeAllData(this, "notificationsound");
}
this.FriendUtils = BDFDB.WebModules.findByProperties(["getFriendIDs", "getRelationships"]);
this.ChannelUtils = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties(["selectPrivateChannel"]);
this.PrivateChannelUtils = BDFDB.WebModules.findByProperties(["openPrivateChannel"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatus", "getOnlineFriendCount"]);
this.UserUtils = BDFDB.WebModules.findByProperties(["getUsers"]);
this.FriendUtils = BDFDB.WebModules.findByProperties("getFriendIDs", "getRelationships");
this.ChannelUtils = BDFDB.WebModules.findByProperties("getDMFromUserId");
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties("selectPrivateChannel");
this.PrivateChannelUtils = BDFDB.WebModules.findByProperties("openPrivateChannel");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatus", "getOnlineFriendCount");
this.UserUtils = BDFDB.WebModules.findByProperties("getUsers");
var observer = null;

View File

@ -103,9 +103,9 @@ class JoinedAtDate {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.CurrentGuildStore = BDFDB.WebModules.findByProperties(["getLastSelectedGuildId"]);
this.APIModule = BDFDB.WebModules.findByProperties(["getAPIBaseURL"]);
this.DiscordConstants = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes", "StatusTypes"]);
this.CurrentGuildStore = BDFDB.WebModules.findByProperties("getLastSelectedGuildId");
this.APIModule = BDFDB.WebModules.findByProperties("getAPIBaseURL");
this.DiscordConstants = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes", "StatusTypes");
var observer = null;

View File

@ -109,11 +109,11 @@ class MessageUtilities {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannel", "getChannels"]);
this.MessageActions = BDFDB.WebModules.findByProperties(["startEditMessage", "endEditMessage"]);
this.PinActions = BDFDB.WebModules.findByProperties(["pinMessage", "unpinMessage"]);
this.CurrentUserPerms = BDFDB.WebModules.findByProperties(["getChannelPermissions", "can"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannel", "getChannels");
this.MessageActions = BDFDB.WebModules.findByProperties("startEditMessage", "endEditMessage");
this.PinActions = BDFDB.WebModules.findByProperties("pinMessage", "unpinMessage");
this.CurrentUserPerms = BDFDB.WebModules.findByProperties("getChannelPermissions", "can");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions
$(document)
.on("click." + this.getName(), BDFDB.dotCNC.message + BDFDB.dotCN.messagesystem, (e) => {

View File

@ -175,9 +175,9 @@ class NotificationSounds {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.ChannelSettingsUtils = BDFDB.WebModules.findByProperties(["isGuildOrCategoryOrChannelMuted"]);
this.ChannelSettingsUtils = BDFDB.WebModules.findByProperties("isGuildOrCategoryOrChannelMuted");
BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties(["receiveMessage"]), "receiveMessage", this, {before: (e) => {
BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties("receiveMessage"), "receiveMessage", this, {before: (e) => {
let message = e.methodArguments[1];
let guildid = message.guild_id ? message.guild_id : null;
if (!this.ChannelSettingsUtils.isGuildOrCategoryOrChannelMuted(guildid, message.channel_id) && message.author.id != BDFDB.myData.id) {
@ -194,7 +194,7 @@ class NotificationSounds {
}
}});
BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties(["playSound"]), "playSound", this, {instead: (e) => {
BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties("playSound"), "playSound", this, {instead: (e) => {
setImmediate(() => {
var type = e.methodArguments[0];
if (type == "message1") {

View File

@ -177,13 +177,13 @@ class PersonalPins {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.GuildStore = BDFDB.WebModules.findByProperties(["getGuild"]);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannel"]);
this.UserStore = BDFDB.WebModules.findByProperties(["getUser"]);
this.MemberStore = BDFDB.WebModules.findByProperties(["getMember"]);
this.IconUtils = BDFDB.WebModules.findByProperties(["getUserAvatarURL"]);
this.HistoryUtils = BDFDB.WebModules.findByProperties(["transitionTo", "replaceWith", "getHistory"]);
this.MainDiscord = BDFDB.WebModules.findByProperties(["ActionTypes"]);
this.GuildStore = BDFDB.WebModules.findByProperties("getGuild");
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannel");
this.UserStore = BDFDB.WebModules.findByProperties("getUser");
this.MemberStore = BDFDB.WebModules.findByProperties("getMember");
this.IconUtils = BDFDB.WebModules.findByProperties("getUserAvatarURL");
this.HistoryUtils = BDFDB.WebModules.findByProperties("transitionTo", "replaceWith", "getHistory");
this.MainDiscord = BDFDB.WebModules.findByProperties("ActionTypes");
var observer = null;

View File

@ -45,8 +45,8 @@ class PinDMs {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.ChannelUtils = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.ChannelUtils = BDFDB.WebModules.findByProperties("getDMFromUserId");
var observer = null;

View File

@ -59,8 +59,8 @@ class RemoveNicknames {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberPerms = BDFDB.WebModules.findByProperties(["getNicknames", "getNick"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberPerms = BDFDB.WebModules.findByProperties("getNicknames", "getNick");
var observer = null;

View File

@ -352,8 +352,8 @@ class ServerFolders {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.DiscordConstants = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes", "StatusTypes"]);
this.Animations = BDFDB.WebModules.findByProperties(["spring"]);
this.DiscordConstants = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes", "StatusTypes");
this.Animations = BDFDB.WebModules.findByProperties("spring");
var observer = null;

View File

@ -139,13 +139,13 @@ class ShowHiddenChannels {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.React = BDFDB.WebModules.findByProperties(["createElement", "cloneElement"]);
this.ChannelTypes = BDFDB.WebModules.findByProperties(["ChannelTypes"]).ChannelTypes;
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberStore = BDFDB.WebModules.findByProperties(["getMember", "getMembers"]);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannels", "getDMFromUserId"]);
this.GuildChannels = BDFDB.WebModules.findByProperties(["getChannels", "getDefaultChannel"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions;
this.React = BDFDB.WebModules.findByProperties("createElement", "cloneElement");
this.ChannelTypes = BDFDB.WebModules.findByProperties("ChannelTypes").ChannelTypes;
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberStore = BDFDB.WebModules.findByProperties("getMember", "getMembers");
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannels", "getDMFromUserId");
this.GuildChannels = BDFDB.WebModules.findByProperties("getChannels", "getDefaultChannel");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions;
var observer = null;

View File

@ -284,11 +284,11 @@ class StalkerNotifications {
BDFDB.removeAllData(this, "notificationsound");
}
this.ChannelUtils = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties(["selectPrivateChannel"]);
this.PrivateChannelUtils = BDFDB.WebModules.findByProperties(["openPrivateChannel"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatus", "getOnlineFriendCount"]);
this.UserUtils = BDFDB.WebModules.findByProperties(["getUsers"]);
this.ChannelUtils = BDFDB.WebModules.findByProperties("getDMFromUserId");
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties("selectPrivateChannel");
this.PrivateChannelUtils = BDFDB.WebModules.findByProperties("openPrivateChannel");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatus", "getOnlineFriendCount");
this.UserUtils = BDFDB.WebModules.findByProperties("getUsers");
for (let id in BDFDB.loadAllData(this, "users")) {
this.stalkerOnlineList[id] = this.UserMetaStore.getStatus(id) != "offline";

View File

@ -347,8 +347,8 @@ class ThemeRepo {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserUtils = BDFDB.WebModules.findByProperties(["getUsers"]);
this.IconUtils = BDFDB.WebModules.findByProperties(["getUserAvatarURL"]);
this.UserUtils = BDFDB.WebModules.findByProperties("getUsers");
this.IconUtils = BDFDB.WebModules.findByProperties("getUserAvatarURL");
var observer = null;

View File

@ -90,9 +90,9 @@ class TopRoleEverywhere {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.GuildPerms = BDFDB.WebModules.findByProperties(["getHighestRole"]);
this.GuildStore = BDFDB.WebModules.findByProperties(["getGuild"]);
this.UserGuildState = BDFDB.WebModules.findByProperties(["getGuildId", "getLastSelectedGuildId"]);
this.GuildPerms = BDFDB.WebModules.findByProperties("getHighestRole");
this.GuildStore = BDFDB.WebModules.findByProperties("getGuild");
this.UserGuildState = BDFDB.WebModules.findByProperties("getGuildId", "getLastSelectedGuildId");
var observer = null;

View File

@ -76,9 +76,9 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserModalUtils = BDFDB.WebModules.findByProperties(["fetchMutualFriends","open"]);
this.APIModule = BDFDB.WebModules.findByProperties(["getAPIBaseURL"]);
this.DiscordConstants = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes", "StatusTypes"]);
this.UserModalUtils = BDFDB.WebModules.findByProperties("fetchMutualFriends","open");
this.APIModule = BDFDB.WebModules.findByProperties("getAPIBaseURL");
this.DiscordConstants = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes", "StatusTypes");
var observer = null;

View File

@ -67,9 +67,9 @@ module.exports = (Plugin, Api, Vendor) => {
});
BDFDB.addObserver(this, BDFDB.dotCN.friendsonline, {name:"friendCountObserver",instance:observer}, {childList:true, subtree:true, characterData:true});
this.FriendUtils = BDFDB.WebModules.findByProperties(["getFriendIDs", "getRelationships"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatuses", "getOnlineFriendCount"]);
var RelationshipTypes = BDFDB.WebModules.findByProperties(["RelationshipTypes"]).RelationshipTypes;
this.FriendUtils = BDFDB.WebModules.findByProperties("getFriendIDs", "getRelationships");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatuses", "getOnlineFriendCount");
var RelationshipTypes = BDFDB.WebModules.findByProperties("RelationshipTypes").RelationshipTypes;
for (let type in RelationshipTypes) {
this.relationshipTypes[RelationshipTypes[type]] = type;
}

View File

@ -68,8 +68,8 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.SearchNavigation = BDFDB.WebModules.findByProperties(["searchNextPage","searchPreviousPage"]);
this.SearchUtils = BDFDB.WebModules.findByProperties(["getCurrentSearchId"]);
this.SearchNavigation = BDFDB.WebModules.findByProperties("searchNextPage","searchPreviousPage");
this.SearchUtils = BDFDB.WebModules.findByProperties("getCurrentSearchId");
var observer = null;

View File

@ -34,9 +34,9 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UploadModule = BDFDB.WebModules.findByProperties(["instantBatchUpload"]);
this.CurrentUserPerms = BDFDB.WebModules.findByProperties(["getChannelPermissions", "can"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions;
this.UploadModule = BDFDB.WebModules.findByProperties("instantBatchUpload");
this.CurrentUserPerms = BDFDB.WebModules.findByProperties("getChannelPermissions", "can");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions;
var observer = null;

View File

@ -193,11 +193,11 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberPerms = BDFDB.WebModules.findByProperties(["getNicknames", "getNick"]);
this.TypingUtils = BDFDB.WebModules.findByProperties(["getTypingUsers"]);
this.LastGuildStore = BDFDB.WebModules.findByProperties(["getLastSelectedGuildId"]);
this.LastChannelStore = BDFDB.WebModules.findByProperties(["getLastSelectedChannelId"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberPerms = BDFDB.WebModules.findByProperties("getNicknames", "getNick");
this.TypingUtils = BDFDB.WebModules.findByProperties("getTypingUsers");
this.LastGuildStore = BDFDB.WebModules.findByProperties("getLastSelectedGuildId");
this.LastChannelStore = BDFDB.WebModules.findByProperties("getLastSelectedChannelId");
var observer = null;

View File

@ -207,7 +207,7 @@ module.exports = (Plugin, Api, Vendor) => {
});
BDFDB.addObserver(this, BDFDB.dotCN.popouts, {name:"emojiPickerObserver",instance:observer}, {childList: true});
this.GuildEmojis = BDFDB.WebModules.findByProperties(["getGuildEmoji", "getDisambiguatedEmojiContext"]);
this.GuildEmojis = BDFDB.WebModules.findByProperties("getGuildEmoji", "getDisambiguatedEmojiContext");
return true;
}

View File

@ -217,7 +217,7 @@ module.exports = (Plugin, Api, Vendor) => {
initialize () {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.LanguageUtils = BDFDB.WebModules.findByProperties(["getLanguages"]);
this.LanguageUtils = BDFDB.WebModules.findByProperties("getLanguages");
this.translateInterval = setInterval(() => {
if (document.querySelector("html").lang && document.querySelector("html").lang == "de") {
clearInterval(this.translateInterval);

View File

@ -134,11 +134,11 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.FriendUtils = BDFDB.WebModules.findByProperties(["getFriendIDs", "getRelationships"]);
this.ChannelUtils = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties(["selectPrivateChannel"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatuses", "getOnlineFriendCount"]);
this.UserUtils = BDFDB.WebModules.findByProperties(["getUsers"]);
this.FriendUtils = BDFDB.WebModules.findByProperties("getFriendIDs", "getRelationships");
this.ChannelUtils = BDFDB.WebModules.findByProperties("getDMFromUserId");
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties("selectPrivateChannel");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatuses", "getOnlineFriendCount");
this.UserUtils = BDFDB.WebModules.findByProperties("getUsers");
var observer = null;

View File

@ -62,11 +62,11 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannel", "getChannels"]);
this.MessageActions = BDFDB.WebModules.findByProperties(["startEditMessage", "endEditMessage"]);
this.PinActions = BDFDB.WebModules.findByProperties(["pinMessage", "unpinMessage"]);
this.CurrentUserPerms = BDFDB.WebModules.findByProperties(["getChannelPermissions", "can"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannel", "getChannels");
this.MessageActions = BDFDB.WebModules.findByProperties("startEditMessage", "endEditMessage");
this.PinActions = BDFDB.WebModules.findByProperties("pinMessage", "unpinMessage");
this.CurrentUserPerms = BDFDB.WebModules.findByProperties("getChannelPermissions", "can");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions
$(document)
.on("click." + this.name, BDFDB.dotCN.message, (e) => {

View File

@ -112,7 +112,7 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.SoundUtils = BDFDB.WebModules.findByProperties(["playSound"]);
this.SoundUtils = BDFDB.WebModules.findByProperties("playSound");
this.patchCancel = BDFDB.WebModules.monkeyPatch(this.SoundUtils, "playSound", {instead: (e) => {
setImmediate(() => {

View File

@ -135,13 +135,13 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.GuildStore = BDFDB.WebModules.findByProperties(["getGuild"]);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannel"]);
this.UserStore = BDFDB.WebModules.findByProperties(["getUser"]);
this.MemberStore = BDFDB.WebModules.findByProperties(["getMember"]);
this.IconUtils = BDFDB.WebModules.findByProperties(["getUserAvatarURL"]);
this.HistoryUtils = BDFDB.WebModules.findByProperties(["transitionTo", "replaceWith", "getHistory"]);
this.MainDiscord = BDFDB.WebModules.findByProperties(["ActionTypes"]);
this.GuildStore = BDFDB.WebModules.findByProperties("getGuild");
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannel");
this.UserStore = BDFDB.WebModules.findByProperties("getUser");
this.MemberStore = BDFDB.WebModules.findByProperties("getMember");
this.IconUtils = BDFDB.WebModules.findByProperties("getUserAvatarURL");
this.HistoryUtils = BDFDB.WebModules.findByProperties("transitionTo", "replaceWith", "getHistory");
this.MainDiscord = BDFDB.WebModules.findByProperties("ActionTypes");
var observer = null;

View File

@ -57,11 +57,11 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.ActivityStore = BDFDB.WebModules.findByProperties(["getStatuses", "getActivities"]);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties(["selectPrivateChannel"]);
this.UserContextMenuUtils = BDFDB.WebModules.findByProperties(["openUserContextMenu"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.ActivityStore = BDFDB.WebModules.findByProperties("getStatuses", "getActivities");
this.ChannelStore = BDFDB.WebModules.findByProperties("getDMFromUserId");
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties("selectPrivateChannel");
this.UserContextMenuUtils = BDFDB.WebModules.findByProperties("openUserContextMenu");
var observer = null;

View File

@ -35,8 +35,8 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberPerms = BDFDB.WebModules.findByProperties(["getNicknames", "getNick"]);
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberPerms = BDFDB.WebModules.findByProperties("getNicknames", "getNick");
var observer = null;

View File

@ -84,7 +84,7 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.MessageUtils = BDFDB.WebModules.findByProperties(["parse","isMentioned"]);
this.MessageUtils = BDFDB.WebModules.findByProperties("parse","isMentioned");
this.bindEventToTextArea();

View File

@ -96,11 +96,11 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.UserStore = BDFDB.WebModules.findByProperties(["getUsers", "getUser"]);
this.MemberStore = BDFDB.WebModules.findByProperties(["getMember", "getMembers"]);
this.ChannelStore = BDFDB.WebModules.findByProperties(["getChannels", "getDMFromUserId"]);
this.GuildChannels = BDFDB.WebModules.findByProperties(["getChannels", "getDefaultChannel"]);
this.Permissions = BDFDB.WebModules.findByProperties(["Permissions", "ActivityTypes"]).Permissions;
this.UserStore = BDFDB.WebModules.findByProperties("getUsers", "getUser");
this.MemberStore = BDFDB.WebModules.findByProperties("getMember", "getMembers");
this.ChannelStore = BDFDB.WebModules.findByProperties("getChannels", "getDMFromUserId");
this.GuildChannels = BDFDB.WebModules.findByProperties("getChannels", "getDefaultChannel");
this.Permissions = BDFDB.WebModules.findByProperties("Permissions", "ActivityTypes").Permissions;
var observer = null;

View File

@ -146,10 +146,10 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.ChannelUtils = BDFDB.WebModules.findByProperties(["getDMFromUserId"]);
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties(["selectPrivateChannel"]);
this.UserMetaStore = BDFDB.WebModules.findByProperties(["getStatuses", "getOnlineFriendCount"]);
this.UserUtils = BDFDB.WebModules.findByProperties(["getUsers"]);
this.ChannelUtils = BDFDB.WebModules.findByProperties("getDMFromUserId");
this.ChannelSwitchUtils = BDFDB.WebModules.findByProperties("selectPrivateChannel");
this.UserMetaStore = BDFDB.WebModules.findByProperties("getStatuses", "getOnlineFriendCount");
this.UserUtils = BDFDB.WebModules.findByProperties("getUsers");
for (let id in BDFDB.loadAllData(this, "users")) {
this.stalkerOnlineList[id] = this.UserMetaStore.getStatus(id) != "offline";

View File

@ -64,9 +64,9 @@ module.exports = (Plugin, Api, Vendor) => {
if (typeof BDFDB === "object") {
BDFDB.loadMessage(this);
this.GuildPerms = BDFDB.WebModules.findByProperties(["getHighestRole"]);
this.GuildStore = BDFDB.WebModules.findByProperties(["getGuild"]);
this.UserGuildState = BDFDB.WebModules.findByProperties(["getGuildId", "getLastSelectedGuildId"]);
this.GuildPerms = BDFDB.WebModules.findByProperties("getHighestRole");
this.GuildStore = BDFDB.WebModules.findByProperties("getGuild");
this.UserGuildState = BDFDB.WebModules.findByProperties("getGuildId", "getLastSelectedGuildId");
var observer = null;