This commit is contained in:
Mirco Wittrien 2022-11-29 14:12:15 +01:00
parent f077225aa9
commit 609f7ad956
2 changed files with 9 additions and 4 deletions

View File

@ -362,6 +362,7 @@
"ActiveThread": {"strings": [".threadId", ".gotoThread", ".showChannelName"]},
"AnalyticsContext": {"props": ["ObjectTypes", "Objects", "Pages", "Sections"]},
"AuditLogEntry": {"protos": ["renderRoleUpdate", "renderChangeDetails", "getActionTypeColor", "renderPermissionUpdate"]},
"AuditLogs": {"strings": ["Messages.SEARCH_MEMBERS", "._lastExpandedRef", ".handleActionFilterQueryClear"]},
"AuthWrapper": {"protos": ["renderDefault", "renderMobile", "mobileReplaceWith"]},
"AutocompleteChannelResult": {"strings": [".channel", ".category", ".type===", ".GUILD_CATEGORY?", "().icon"]},
"AutocompleteRoleResult": {"strings": [".hideDescription", ".colorString", ".Messages.MENTION_USERS_WITH_ROLE"]},
@ -372,10 +373,12 @@
"BlobMask": {"protos": ["getBadgePositionInterpolation", "getUpperBadgeStyles"]},
"BlockedMessageGroup": {"strings": ["collapsed-message-item", "isBeforeGroup", "collapsedReason"]},
"ChannelCall": {"strings": ["maybeLeaveFullScreen", "handleFullscreenParticipant", "CHANNEL_CALL_POPOUT"]},
"ChannelCallGrid": {"strings": [".totalNumberOfParticipants", "keyExtractor:", "channel_user_limit:"]},
"ChannelItem": {"strings": ["canHaveDot", "unreadRelevant", "UNREAD_HIGHLIGHT"]},
"ChannelItemIcon": {"strings": [".hasActiveThreads", ".locked", ".iconContainer"]},
"ChannelMembers": {"strings": ["MEMBER_LIST_VIEWED", "getDimensions", "member-"]},
"ChannelPins": {"strings": ["PINNED_MESSAGES", "renderEmptyState", "listName"]},
"ChannelReply": {"strings": [".messageReference", ".REPLY_MENTION_OFF", ".mentionIcon"]},
"ChannelSidebar": {"strings": ["ACCOUNT_PANEL", "RTC_CONNECTION_PANEL", "ACCOUNT_A11Y_LABEL"]},
"ChannelsList": {"protos": ["isUnreadVisible", "renderBottomUnread", "getSectionRowsFromChannel"]},
"ChannelTextAreaButtons": {"strings": [".buttons", "\"expression\"", "activeCommandOption"]},
@ -402,10 +405,12 @@
"FolderItemWrapper": {"strings": [".folderNode", "getActiveStreamForUser", "currentActiveVoiceType"]},
"GuildChannelListContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "\"guild-context\",\"aria-label\""]},
"GuildContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild", "GuildContextMenu"]},
"GuildEmojiList": {"strings": ["getMaxEmojiSlots", "lightSrc:", ".Messages.NO_EMOJI"]},
"GuildFavorites": {"strings": [".favoriteIcon", "FAVORITES_GUILD_NAME"]},
"GuildInvites": {"strings": [".NO_INVITES_BODY", ".DISABLE_INVITES", "submitting"]},
"GuildItem": {"strings": [".guildNode", "guildJoinRequestStatus", "lowerBadgeWidth"]},
"GuildMemberEntry": {"strings": [".renderOwnerHelpIcon(", ".overflowButton", ".roleWrapper"]},
"GuildsBar": {"strings": ["unreadMentionsIndicatorTop", "disableAppDownload", ".GUILD_MEMBER_VERIFICATION"]},
"GuildSettingsInvites": {"strings": [".NO_INVITES_BODY", ".DISABLE_INVITES", "submitting"]},
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
"GuildTooltip": {"strings": ["tooltipClassName", "includeActivity", "listItemTooltip"]},
"HeaderBar": {"strings": [".hamburger", "scrollable", "themed"]},

View File

@ -2,7 +2,7 @@
* @name EditChannels
* @author DevilBro
* @authorId 278543574059057154
* @version 4.4.7
* @version 4.4.8
* @description Allows you to locally edit Channels
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -91,7 +91,7 @@ module.exports = (_ => {
"ChannelsList",
"ChannelTextAreaEditor",
"ChannelThreadItem",
"GuildSettingsInvites",
"GuildInvites",
"MessageContent",
"QuickSwitchChannelResult",
"RecentsChannelHeader",
@ -340,7 +340,7 @@ module.exports = (_ => {
}
}
processGuildSettingsInvites (e) {
processGuildInvites (e) {
if (!this.settings.places.inviteLog || !e.instance.props.invites) return;
e.instance.props.invites = Object.assign({}, e.instance.props.invites);
for (let id in e.instance.props.invites) e.instance.props.invites[id] = new BDFDB.DiscordObjects.Invite(Object.assign({}, e.instance.props.invites[id], {channel: this.getChannelData(e.instance.props.invites[id].channel.id)}));