Open fishidiot opened 7 months ago
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
Was about to suggest this. Yes!
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
The stock role menu, NOT the PermissionViewer plugin
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
The stock role menu, NOT the PermissionViewer plugin
As someone with no access to the roles menu, you cant.
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
The stock role menu, NOT the PermissionViewer plugin
As someone with no access to the roles menu, you cant.
just did some research
this is entirely possible
just query /guilds/:guildId/roles/:roleId/member-ids
(see Endpoints.GUILD_ROLE_MEMBER_IDS)
returns array of user ids
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
The stock role menu, NOT the PermissionViewer plugin
As someone with no access to the roles menu, you cant.
just did some research this is entirely possible just query
/guilds/:guildId/roles/:roleId/member-ids
(see Endpoints.GUILD_ROLE_MEMBER_IDS) returns array of user ids
i know its possible, but you cant see it from the default menu is what i meant
you can alr do this in permissions viewer afaik
you can view the permissions of the role but you cant view all the members that actually have that role like the plugin does
The stock role menu, NOT the PermissionViewer plugin
As someone with no access to the roles menu, you cant.
just did some research this is entirely possible just query
/guilds/:guildId/roles/:roleId/member-ids
(see Endpoints.GUILD_ROLE_MEMBER_IDS) returns array of user idsi know its possible, but you cant see it from the default menu is what i meant
You can use this to disable local perms checks which allows you to use stock menu
let _mods; webpackChunkdiscord_app.push([[Symbol()],{},r=>_mods=r.c]);
webpackChunkdiscord_app.pop();
let findByProps = (...props) => {
for (let m of Object.values(_mods)) {
try {
if (!m.exports || m.exports === window) continue;
if (props.every((x) => m.exports?.[x])) return m.exports;
for (let ex in m.exports) {
if (props.every((x) => m.exports?.[ex]?.[x])) return m.exports[ex];
}
} catch {}
}
}
let {IncidentAlertModeratorPermissions} = findByProps("IncidentAlertModeratorPermissions"),
{MemberSafetyPagePermissions} = findByProps("MemberSafetyPagePermissions"),
{ElevatedPermissions} = findByProps("ElevatedPermissions");
let permStore = findByProps("canBasicChannel");
["can", "canAccessGuildSettings", "canAccessMemberSafetyPage", "canBasicChannel", "canImpersonateRole", "canManageUser", "canWithPartialContext", "isRoleHigher"]
.forEach(a => permStore.__proto__[a] = () => true);
let permUtils = findByProps("hasAny", "combine");
permUtils.hasAny = (a, b) =>
[IncidentAlertModeratorPermissions, MemberSafetyPagePermissions, ElevatedPermissions].includes(b) || Boolean(a | b);
Since the above doesn't work, this is a "fixed" version:
let _mods; webpackChunkdiscord_app.push([[Symbol()],{},r=>_mods=r.c]);
webpackChunkdiscord_app.pop();
let findByProps = (...props) => {
for (let m of Object.values(_mods)) {
try {
if (!m.exports || m.exports === window) continue;
if (props.every((x) => m.exports?.[x])) return m.exports;
for (let ex in m.exports) {
if (props.every((x) => m.exports?.[ex]?.[x])) return m.exports[ex];
}
} catch {}
}
}
let permStore = findByProps("canBasicChannel");
["can", "canAccessGuildSettings", "canAccessMemberSafetyPage", "canBasicChannel", "canImpersonateRole", "canManageUser", "canWithPartialContext", "isRoleHigher"]
.forEach(a => permStore.__proto__[a] = () => true);
Since the above doesn't work, this is a "fixed" version:
how do you use this code, where would I go to input this?
There's an experiment for this.
Plugin Description
A mod that allows you to see all members of a certain role on a server.
Existing Plugin for other mod
https://betterdiscord.app/plugin/RoleMembers
Request Agreement