3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 20:55:01 +00:00

feat: add internal role manager plugin; add role buttons plugin

This commit is contained in:
Dragory 2022-04-23 16:31:41 +03:00
parent 9314d57645
commit 3fe71b3e27
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
23 changed files with 732 additions and 1 deletions

View file

@ -0,0 +1,13 @@
import { GuildPluginData } from "knub";
import { RoleManagerPluginType } from "../types";
import { PRIORITY_ROLE_PRIORITY } from "../constants";
import { runRoleAssignmentLoop } from "./runRoleAssignmentLoop";
export async function removePriorityRole(
pluginData: GuildPluginData<RoleManagerPluginType>,
userId: string,
roleId: string,
) {
await pluginData.state.roleQueue.addQueueItem(userId, roleId, false, PRIORITY_ROLE_PRIORITY);
runRoleAssignmentLoop(pluginData);
}