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:
parent
9314d57645
commit
3fe71b3e27
23 changed files with 732 additions and 1 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue