mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
8 lines
386 B
TypeScript
8 lines
386 B
TypeScript
import { GuildPluginData } from "knub";
|
|
import { RoleManagerPluginType } from "../types";
|
|
import { runRoleAssignmentLoop } from "./runRoleAssignmentLoop";
|
|
|
|
export async function removeRole(pluginData: GuildPluginData<RoleManagerPluginType>, userId: string, roleId: string) {
|
|
await pluginData.state.roleQueue.addQueueItem(userId, roleId, false);
|
|
runRoleAssignmentLoop(pluginData);
|
|
}
|