Fix ProfileSets Bug (?)
This commit is contained in:
parent
20e339ee6e
commit
04eb4c5528
5 changed files with 2555 additions and 27 deletions
2504
misc/fluxEvents.md
Normal file
2504
misc/fluxEvents.md
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,29 +1,32 @@
|
|||
# NavIDs
|
||||
# Navigation IDs
|
||||
|
||||
If you have `ConsoleShortcuts` enabled you can run loadLazyChunks()
|
||||
after it says Finished loading all chunks! in console
|
||||
you can run the snippet below to list and copy all the navIds currently available
|
||||
1. Open console and run `Vencord.Util.loadLazyChunks();`
|
||||
2. Once it prints Finished loading all chunks! run the script below
|
||||
|
||||
```js
|
||||
const wp = webpackChunkdiscord_app.push([[Symbol()], {}, r => r]);
|
||||
const navIds = [...new Set(
|
||||
Object.values(wp.m).flatMap(f =>
|
||||
[...Function.prototype.toString.call(f)
|
||||
.matchAll(/navId:\s*["'`]([^"'`]+)["'`]/g)]
|
||||
.map(m => m[1])
|
||||
)
|
||||
)].sort().join("\n");
|
||||
console.log(navIds);
|
||||
copy(navIds);
|
||||
function makeNavIdList() {
|
||||
const navIds = new Set();
|
||||
|
||||
for (const factory of Object.values(Vencord.Webpack.wreq.m)) {
|
||||
const src = String(factory);
|
||||
if (!src.includes("navId")) continue;
|
||||
|
||||
for (const [, , id] of src.matchAll(/navId:\s*(["'`])([^"'`$\\]+)\1/g)) {
|
||||
navIds.add(id);
|
||||
}
|
||||
}
|
||||
|
||||
return Array.from(navIds).sort().join("\n");
|
||||
}
|
||||
copy(makeNavIdList())
|
||||
```
|
||||
|
||||
```md
|
||||
ChannelNotificationCustomSettingsItems
|
||||
accept-invite-modal-settings-menu
|
||||
activity-custom-context
|
||||
activity-popout-overflow-popout
|
||||
activity-shelf-item-context
|
||||
add-questions
|
||||
app-channel-header-overflow
|
||||
app-details-more-menu
|
||||
application-directory-profile
|
||||
attachment-link-context
|
||||
|
|
@ -36,6 +39,7 @@ badge-directory-earnable
|
|||
badge-directory-owned
|
||||
banner-edit-context
|
||||
channel-attach
|
||||
channel-autocomplete
|
||||
channel-context
|
||||
channel-mention-context
|
||||
channel-summaries-context-menu
|
||||
|
|
@ -46,16 +50,15 @@ clips-context
|
|||
clips-method-menu
|
||||
clips-more-options
|
||||
clips-sort-menu
|
||||
collectibles-game-shops-menu
|
||||
collectibles-index-page-menu
|
||||
collectibles-shop-tabs-overflow-menu
|
||||
command-list-sort
|
||||
component-button
|
||||
dev-context
|
||||
device-detected-panel-more-actions
|
||||
devtools-overflow
|
||||
devtools-popout
|
||||
download-app-menu
|
||||
edit-profile-popout
|
||||
emoji-picker-categories
|
||||
emoji-studio-context-menu
|
||||
exit-options
|
||||
expression-picker
|
||||
|
|
@ -68,6 +71,7 @@ game-context
|
|||
game-profile-add-to-profile
|
||||
game-profile-context
|
||||
game-shop-context
|
||||
game_server-popout-context-menu
|
||||
gdm-context
|
||||
gif-picker
|
||||
global-discovery-search-filter-options
|
||||
|
|
@ -95,9 +99,10 @@ join-call-context
|
|||
join-request-guild-context
|
||||
launch-context
|
||||
manage-multi-account
|
||||
manage-streams
|
||||
member-application-context-menu
|
||||
member-list-settings-menu
|
||||
member-safety-flags
|
||||
member-safety-guild-member-${o}-menu
|
||||
member-safety-roles
|
||||
members-table-join-method-menu
|
||||
members-table-sort-menu
|
||||
|
|
@ -124,14 +129,18 @@ overlay-report-to-mod-channel-context
|
|||
overlay-user-context
|
||||
overlay-video-widget-context-menu
|
||||
overlay-voice-widget-context-menu
|
||||
personal-widget-image-edit-menu
|
||||
pip-menu
|
||||
play-quest-platform-select-${e.id}
|
||||
plaintext-preview-overflow-menu
|
||||
play-on-distributor-menu
|
||||
playground-copy-link-menu
|
||||
playground-settings-menu
|
||||
poll-media-edit-menu
|
||||
progress-bar-context
|
||||
quests-entry
|
||||
recents-notifications
|
||||
recents-thread-notifications
|
||||
registered-game-overflow-menu
|
||||
report-to-mod-channel-context
|
||||
role-icon-context
|
||||
role-subscription-context
|
||||
|
|
@ -142,18 +151,21 @@ search-results
|
|||
search-settings-cog
|
||||
send-announcement-options
|
||||
set-image-for-action
|
||||
set-status-submenu
|
||||
set-status-submenu-mobile-web
|
||||
settings-footer-more-menu
|
||||
settings-menu
|
||||
slayer-storefront-shop-dropdown
|
||||
social-layer-storefront-card-context
|
||||
social-layer-storefront-entry
|
||||
sort-and-view
|
||||
sound-button-context
|
||||
soundboard-picker-categories
|
||||
staff-help-popout
|
||||
staff-only-entry-debug
|
||||
stream-context
|
||||
stream-options
|
||||
subscription-context
|
||||
switch-accounts-submenu
|
||||
text-context
|
||||
textarea-context
|
||||
thread-context
|
||||
|
|
@ -170,9 +182,10 @@ vibegrations-channel-overflow
|
|||
vibegrations-composer-attach
|
||||
vibegrations-create
|
||||
vibegrations-import-scope
|
||||
vibegrations-project-actions-${t}
|
||||
vibegrations-trace-actions-${t}
|
||||
video-background-context
|
||||
video-device-context
|
||||
video-player-overflow
|
||||
voice-channel-app-menu
|
||||
webauthn-credential-actions
|
||||
welcome-settings-context
|
||||
widget-game-tags
|
||||
|
|
|
|||
2
packages/discord-types/src/fluxEvents.d.ts
vendored
2
packages/discord-types/src/fluxEvents.d.ts
vendored
File diff suppressed because one or more lines are too long
|
|
@ -60,9 +60,17 @@ function openProfileImagePreview(
|
|||
image: Extract<ImageInput, { imageUri: string; }>,
|
||||
guildId?: string
|
||||
) {
|
||||
const mimeType = /^data:([^;,]+)/.exec(image.imageUri)?.[1] ?? "";
|
||||
dispatch("PROFILE_CUSTOMIZATION_OPEN_PREVIEW_MODAL", {
|
||||
image,
|
||||
file: {},
|
||||
pendingImage: {
|
||||
assetOrigin: "NEW_ASSET",
|
||||
imageUri: image.imageUri,
|
||||
staticImageUri: undefined,
|
||||
description: image.description,
|
||||
originalAsset: undefined,
|
||||
originalMd5: null
|
||||
},
|
||||
file: { type: mimeType },
|
||||
uploadType,
|
||||
guildId,
|
||||
analyticsSource: guildId ? "user settings guild profile" : "user settings user profile",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { loadLazyChunks } from "@debug/loadLazyChunks";
|
||||
import { User } from "@vencord/discord-types";
|
||||
import { ChannelStore, GuildMemberStore, IconUtils } from "@webpack/common";
|
||||
|
||||
|
|
@ -156,3 +157,5 @@ export function getUserAvatarUrl(user: User, guildId?: string, canAnimate?: bool
|
|||
|
||||
// this is all the way down here because i dont feel like dealing with conflicts
|
||||
export const pluralize = pluralise;
|
||||
|
||||
export { loadLazyChunks };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue