diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 2a9d6e1ada..e7af637d40 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -1,5 +1,5 @@ { - "requires": ["child_process", "electron", "fs", "path", "process", "request"], + "LibraryRequires": ["child_process", "electron", "fs", "path", "process", "request"], "DiscordObjects": { "Channel": {"props": ["getRecipientId", "isManaged", "getGuildId"]}, "Guild": {"props": ["getIconURL", "getMaxEmojiSlots", "getRole"]}, @@ -8,7 +8,108 @@ "Messages": {"props": ["jumpToMessage", "hasAfterCached", "forEach"]}, "Relationship": {"protos": ["comparator"], "array": true}, "Timestamp": {"props": ["add", "dayOfYear", "hasAlignedHourOffset"]}, - "User": {"props": ["hasFlag", "isLocalBot", "isClaimed"]}, + "User": {"props": ["hasFlag", "isLocalBot", "isClaimed"]} + }, + "LibraryModules": { + "AckUtils": {"props": ["localAck", "bulkAck"]}, + "ActivityUtils": {"props": ["sendActivityInvite", "updateActivity"]}, + "APIUtils": {"props": ["getAPIBaseURL"]}, + "AnalyticsUtils": {"props": ["isThrottled", "track"]}, + "AnimationUtils": {"props": ["spring", "decay"]}, + "ArrayUtils": {"props": ["isArrayLike", "zipObject"]}, + "AssetUtils": {"props": ["getAssetImage", "getAssetIds"]}, + "BadgeUtils": {"props": ["getBadgeCountString", "getBadgeWidthForValue"]}, + "CallUtils": {"props": ["getCalls", "isCallActive"]}, + "CategoryCollapseStore": {"props": ["getCollapsedCategories", "isCollapsed"]}, + "CategoryCollapseUtils": {"props": ["categoryCollapse", "categoryCollapseAll"]}, + "ChannelStore": {"props": ["getChannel", "getChannels"]}, + "ColorUtils": {"props": ["hex2int", "hex2rgb"]}, + "ContextMenuUtils": {"props": ["closeContextMenu", "openContextMenu"]}, + "CopyLinkUtils": {"props": ["SUPPORTS_COPY", "copy"]}, + "CurrentUserStore": {"props": ["getCurrentUser"]}, + "CurrentVoiceUtils": {"props": ["getAveragePing", "isConnected"]}, + "DirectMessageStore": {"props": ["getPrivateChannelIds"]}, + "DirectMessageUnreadStore": {"props": ["getUnreadPrivateChannelIds"]}, + "DispatchApiUtils": {"props": ["dirtyDispatch", "isDispatching"]}, + "DispatchUtils": {"props": ["ComponentDispatch"]}, + "DirectMessageUtils": {"props": ["addRecipient", "openPrivateChannel"]}, + "EmojiUtils": {"props": ["translateInlineEmojiToSurrogates", "translateSurrogatesToInlineEmoji"]}, + "EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]}, + "FriendUtils": {"props": ["getFriendIDs", "getRelationships"]}, + "FolderStore": {"props": ["getGuildFolderById", "getFlattenedGuilds"]}, + "FolderUtils": {"props": ["isFolderExpanded", "getExpandedFolders"]}, + "GuildBoostUtils": {"props": ["getTierName", "getUserLevel"]}, + "GuildChannelStore": {"props": ["getChannels", "getDefaultChannel"]}, + "GuildEmojiStore": {"props": ["getGuildEmoji", "getDisambiguatedEmojiContext"]}, + "GuildNotificationsUtils": {"props": ["updateChannelOverrideSettings", "updateGuildNotificationSettings"]}, + "GuildSettingsSectionUtils": {"props": ["getGuildSettingsSections"]}, + "GuildSettingsUtils": {"props": ["open", "updateGuild"]}, + "GuildStore": {"props": ["getGuild", "getGuilds"]}, + "GuildUnavailableStore": {"props": ["isUnavailable", "totalUnavailableGuilds"]}, + "GuildUtils": {"props": ["transitionToGuildSync"]}, + "GuildWelcomeStore": {"props": ["hasSeen", "get"]}, + "GuildWelcomeUtils": {"props": ["welcomeScreenViewed", "resetWelcomeScreen"]}, + "HistoryUtils": {"props": ["transitionTo", "replaceWith", "getHistory"]}, + "IconUtils": {"props": ["getGuildIconURL", "getGuildBannerURL"]}, + "InviteUtils": {"props": ["acceptInvite", "createInvite"]}, + "KeyCodeUtils": {"props": ["toCombo", "keyToCode"], "assign": true}, + "KeyEvents": {"props": ["aliases", "code", "codes"]}, + "LanguageStore": {"props": ["getLanguages", "Messages"]}, + "LastChannelStore": {"props": ["getLastSelectedChannelId"]}, + "LastGuildStore": {"props": ["getLastSelectedGuildId"]}, + "LinkUtils": {"props": ["handleClick", "isLinkTrusted"]}, + "LoginUtils": {"props": ["login", "logout"]}, + "MemberCountUtils": {"props": ["getMemberCount", "getMemberCounts"]}, + "MemberStore": {"props": ["getMember", "getMembers"]}, + "MentionUtils": {"props": ["isRawMessageMentioned", "isMentioned"]}, + "MessageManageUtils": {"props": ["copyLink", "quoteMessage"]}, + "MessagePinUtils": {"props": ["pinMessage", "unpinMessage"]}, + "MessageStore": {"props": ["getMessage", "getMessages"]}, + "MessageUtils": {"props": ["receiveMessage", "editMessage"]}, + "ModalUtils": {"props": ["openModal", "hasModalOpen"]}, + "MutedUtils": {"props": ["isGuildOrCategoryOrChannelMuted"]}, + "NoteStore": {"props": ["getNote"]}, + "NotificationSettingsStore": {"props": ["getDesktopType", "getTTSType"]}, + "NotificationSettingsUtils": {"props": ["setDesktopType", "setTTSType"]}, + "NotificationUtils": {"props": ["makeTextChatNotification", "shouldNotify"]}, + "PlatformUtils": {"props": ["isWindows", "isLinux"]}, + "PermissionUtils": {"props": ["getChannelPermissions", "can"]}, + "PermissionRoleUtils": {"props": ["canEveryone", "can"]}, + "QueryUtils": {"props": ["AutocompleterQuerySymbols", "AutocompleterResultTypes"]}, + "QuoteUtils": {"props": ["canQuote", "createQuotedText"]}, + "ReactionEmojiUtils": {"props": ["getReactionEmojiName", "getReactionEmojiName"]}, + "ReactionUtils": {"props": ["addReaction", "removeReaction"]}, + "RecentMentionUtils": {"props": ["deleteRecentMention", "fetchRecentMentions"]}, + "SearchPageUtils": {"props": ["searchNextPage", "searchPreviousPage"]}, + "SelectChannelUtils": {"props": ["selectChannel", "selectPrivateChannel"]}, + "SettingsUtils": {"props": ["updateRemoteSettings", "updateLocalSettings"]}, + "SlateUtils": {"props": ["serialize", "deserialize"], "notProps": ["getFlag"]}, + "SlateSelectionUtils": {"props": ["serialize", "serializeSelection"]}, + "SlowmodeUtils": {"props": ["getSlowmodeCooldownGuess"]}, + "SoundStateUtils": {"props": ["isSoundDisabled", "getDisabledSounds"]}, + "SoundUtils": {"props": ["playSound", "createSound"]}, + "SpellCheckUtils": {"props": ["learnWord", "toggleSpellcheck"]}, + "SpotifyTrackUtils": {"props": ["hasConnectedAccount", "getLastPlayedTrackId"]}, + "SpotifyUtils": {"props": ["setActiveDevice", "pause"]}, + "StateStoreUtils": {"props": ["useStateFromStores", "useStateFromStoresArray"]}, + "StatusMetaUtils": {"props": ["getApplicationActivity", "getStatus"]}, + "StoreChangeUtils": {"props": ["get", "set", "clear", "remove"]}, + "StreamerModeStore": {"props": ["disableSounds", "hidePersonalInformation"]}, + "StreamUtils": {"props": ["getActiveStreamForUser", "getAllApplicationStreams"]}, + "StringUtils": {"props": ["cssValueToNumber", "upperCaseFirstChar"]}, + "TimestampUtils": {"props": ["fromTimestamp", "extractTimestamp"]}, + "UnreadGuildUtils": {"props": ["hasUnread", "getUnreadGuilds"]}, + "UnreadChannelUtils": {"props": ["getUnreadCount", "getOldestUnreadMessageId"]}, + "UploadUtils": {"props": ["upload", "instantBatchUpload"]}, + "URLParser": {"props": ["parse", "resolveObject"]}, + "UserFetchUtils": {"props": ["fetchCurrentUser", "getUser"]}, + "UserNameUtils": {"props": ["getName", "getNickname"]}, + "UserProfileUtils": {"props": ["open", "fetchProfile"]}, + "UserSettingsUtils": {"props": ["open", "updateAccount"]}, + "UserStore": {"props": ["getUser", "getUsers"]}, + "Utilities": {"props": ["flatMap", "cloneDeep"]}, + "VoiceUtils": {"props": ["getAllVoiceStates", "getVoiceStatesForChannel"]}, + "ZoomUtils": {"props": ["setZoom", "setFontSize"]} }, "ModuleUtilsConfig": { "PatchTypes": [