Open ColynOrg opened 1 month ago
discord doesn't show the highest role there by design
make sure they have more than 1 role maybe this could be a feature that SHT removes this check?
nvm i'm wrong. This is a stock Discord issue that we can fix (and need to fix). Discord is using MemberSafetyStore.getEnhancedMember(guildId, userId)
to get the highest role, and opening Mod View from the context menu does not try to load that information. Viewing the Members page does load the required data, as that's where Mod View was originally invoked from. Permissions are required to load that data, so we need to patch this anyway. See attached annotated screenshot for what needs to be changed to fix this.
EDIT: you can just do s[t.highestRoleId] EDIT 2: fixed explanation of bug for fix PR that links to this comment
tl;dr: discord overcomplicated things and depends on stuff that isnt important at all here
Discord Account
CJStylesOrg
What happens when the bug or crash occurs?
the roles will not show up on the mod view at all despite the user having a role shown in their profile. i have tested this on Bread (304260051915374603) whom is a plugin developer in BetterDiscord. cases like this are rare but i managed to stumble upon this.
What is the expected behaviour?
i expect the plugin to retrieve the users role and display them in the mod view, im unaware if this is related to discord or the plugin itself.
How do you recreate this bug or crash?
Errors
Request Agreement