forked from userplugins/in-role
Removed unused function
This commit is contained in:
parent
56d5b10e1b
commit
f4e0f54fab
1 changed files with 0 additions and 11 deletions
11
index.tsx
11
index.tsx
|
@ -20,17 +20,6 @@ import { showInRoleModal } from "./RoleMembersModal";
|
||||||
|
|
||||||
const DeveloperMode = getUserSettingLazy("appearance", "developerMode")!;
|
const DeveloperMode = getUserSettingLazy("appearance", "developerMode")!;
|
||||||
|
|
||||||
function getMembersInRole(roleId: string, guildId: string) {
|
|
||||||
const members = GuildMemberStore.getMembers(guildId);
|
|
||||||
const membersInRole: GuildMember[] = [];
|
|
||||||
members.forEach(member => {
|
|
||||||
if (member.roles.includes(roleId)) {
|
|
||||||
membersInRole.push(member);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return membersInRole;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "InRole",
|
name: "InRole",
|
||||||
description: "Know who is in a role with the role context menu or /inrole command (read plugin info!)",
|
description: "Know who is in a role with the role context menu or /inrole command (read plugin info!)",
|
||||||
|
|
Loading…
Reference in a new issue