From f4e0f54fab9baf1536c80593242a0e164bbdf90f Mon Sep 17 00:00:00 2001 From: Ryfter Date: Sat, 25 Jan 2025 14:18:41 -0500 Subject: [PATCH] Removed unused function --- index.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/index.tsx b/index.tsx index 2c57d3d..7d858d5 100644 --- a/index.tsx +++ b/index.tsx @@ -20,17 +20,6 @@ import { showInRoleModal } from "./RoleMembersModal"; 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({ name: "InRole", description: "Know who is in a role with the role context menu or /inrole command (read plugin info!)",