diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index b343f60193..d6e58a6c35 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.6.7 + * @version 3.6.8 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 8bde26ff7d..30b29002d0 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -20,6 +20,13 @@ "User": {"props": ["addGuildAvatarHash", "isLocalBot"]} }, "CustomDiscordConstants": { + "MAX_GUILD_FOLDER_NAME_LENGTH": 32, + "MAX_MESSAGE_LENGTH": 2000, + "MAX_MESSAGE_LENGTH_PREMIUM": 4000, + "MAX_MESSAGES_PER_CHANNEL": 50, + "MAX_VIDEO_WIDTH": 1024, + "MAX_VIDEO_HEIGHT": 640, + "ME": "@me", "MenuItemColors": { "BRAND": "brand", "DANGER": "danger", @@ -28,6 +35,7 @@ "PREMIUMGRADIENT": "premiumgradient", "SUCCESS": "success" }, + "SEARCH_PAGE_SIZE": 25, "ToastIcons": { "info": "INFO", "danger": "CLOSE_CIRCLE", @@ -72,14 +80,25 @@ "AnalyticsSections": ["FRIENDS_LIST", "PROFILE_POPOUT", "ACCOUNT_PANEL"], "AutocompleterResultTypes": ["VOICE_CHANNEL", "TEXT_CHANNEL", "USER", "LINK"], "ChannelTextAreaTypes": ["CREATE_FORUM_POST", "PROFILE_BIO_INPUT", "FORUM_CHANNEL_GUIDELINES"], + "ChannelTypes": ["GUILD_STORE", "GUILD_TEXT", "GUILD_FORUM"], "ColorsCSS": {"strings": ["var(--status-positive", "var(--bg-brand)"], "value": "Z"}, + "ComponentActions": ["INSERT_TEXT", "PREPEND_TEXT", "SHAKE_APP"], "EmojiSprites": ["DiversityPerRow", "PickerCount", "PickerPerRow"], + "Endpoints": ["MESSAGES", "CHANNEL", "GUILD", "SEARCH_CHANNEL"], + "FriendsSections": ["ADD_FRIEND", "SUGGESTIONS", "BLOCKED"], "InboxTabs": ["MENTIONS", "UNREADS"], + "KeyboardDeviceTypes": ["GAMEPAD_BUTTON", "KEYBOARD_KEY", "MOUSE_BUTTON"], + "MessageStates": ["SEND_FAILED", "SENDING", "SENT"], "MessageTypes": ["THREAD_CREATED", "CHAT_INPUT_COMMAND"], "MessageTypeGroups": ["USER_MESSAGE", "UNDELETABLE"], "Permissions": ["MOVE_MEMBERS", "ADD_REACTIONS", "USE_EXTERNAL_APPS", "VIEW_CREATOR_MONETIZATION_ANALYTICS"], "ReadStateTypes": ["GUILD_EVENT", "NOTIFICATION_CENTER", "CHANNEL"], - "UserSettingsActionTypes": ["SLOW_USER_ACTION", "DAILY"] + "RelationshipTypes": ["FRIEND", "PENDING_INCOMING", "SUGGESTION"], + "Routes": ["CHANNEL", "APP", "QUESTS"], + "UserFlags": ["BOT_HTTP_INTERACTIONS", "PARTNER", "SPAMMER"], + "UserNotificationSettings": ["ONLY_MENTIONS", "NO_MESSAGES", "ALL_MESSAGES"], + "UserSettingsActionTypes": ["SLOW_USER_ACTION", "DAILY"], + "UserSettingsSections": ["CHANGE_LOG", "DEVELOPER_OPTIONS"] }, "LibraryModules": { "AckUtils": {"props": ["ack", "bulkAck", "localAck"]}, diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index 9d9caae662..3e3a783e58 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -285,7 +285,7 @@ module.exports = (_ => { } shouldInject (type) { - return this.settings.places.normal && (type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY || type == BDFDB.DiscordConstants.ChannelTextAreaTypes.SIDEBAR) || this.settings.places.edit && type == BDFDB.DiscordConstants.ChannelTextAreaTypes.EDIT; + return this.settings.places.normal && (type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || type == BDFDB.DiscordConstants.ChannelTextAreaTypes.SIDEBAR) || this.settings.places.edit && type == BDFDB.DiscordConstants.ChannelTextAreaTypes.EDIT; } formatText (text) { diff --git a/Plugins/CustomQuoter/CustomQuoter.plugin.js b/Plugins/CustomQuoter/CustomQuoter.plugin.js index 85903a36de..7fef639f9d 100644 --- a/Plugins/CustomQuoter/CustomQuoter.plugin.js +++ b/Plugins/CustomQuoter/CustomQuoter.plugin.js @@ -367,7 +367,7 @@ module.exports = (_ => { } processChannelTextAreaContainer (e) { - if (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY) ChannelTextAreaContainer = e.instance + if (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL) ChannelTextAreaContainer = e.instance } quote (channel, message, shift) { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 8fc763f193..5a1215ee28 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -465,7 +465,7 @@ module.exports = (_ => { } processChannelTextAreaEditor (e) { - if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.isDM() && (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY) && this.settings.places.chatTextarea) { + if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.isDM() && (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL) && this.settings.places.chatTextarea) { let user = BDFDB.LibraryStores.UserStore.getUser(e.instance.props.channel.recipients[0]); if (user) e.instance.props.placeholder = BDFDB.LanguageUtils.LanguageStringsFormat("TEXTAREA_PLACEHOLDER", `@${changedUsers[user.id] && changedUsers[user.id].name || user.globalName || user.username}`); } diff --git a/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js b/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js index a65cfa2370..6f3a0fc066 100644 --- a/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js +++ b/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js @@ -199,7 +199,7 @@ module.exports = (_ => { } processChannelTextAreaEditor (e) { - if (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY || e.instance.props.type == BDFDB.LibraryComponents.ChannelTextAreaTypes.SIDEBAR) e.instance.props.uploadPromptCharacterCount = 100000; + if (e.instance.props.type == BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL || e.instance.props.type == BDFDB.LibraryComponents.ChannelTextAreaTypes.SIDEBAR) e.instance.props.uploadPromptCharacterCount = 100000; } isSlowDowned (channel) {