Removed unused function

This commit is contained in:
Ryfter 2025-01-25 14:18:41 -05:00
parent 56d5b10e1b
commit f4e0f54fab

View file

@ -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!)",