Checks if a user has a specific permission node.
Automatically resolves wildcard nodes (e.g., admin.*).
The data required to check the permission (discordId/ign, roles, and the required node).
A promise resolving to a boolean indicating whether access is granted.
Grants a permission node to a specific role.
The role identifier and the node to grant.
A promise resolving to the updated RolePermissionEntity.
Grants a permission node directly to a specific user.
The user identifier (discordId or ign) and the node to grant.
A promise resolving to the updated UserPermissionEntity.
Revokes a permission node from a specific role.
The role identifier and the node to revoke.
A promise resolving to the updated RolePermissionEntity.
Revokes a permission node directly from a specific user.
The user identifier (discordId or ign) and the node to revoke.
A promise resolving to the updated UserPermissionEntity.
Updates the readable name of a role.
The Discord Role ID.
The payload containing the new name.
A promise resolving to the updated RolePermissionEntity.
Manages API operations related to the RBAC (Role-Based Access Control) system. Allows for checking permissions, and granting/revoking nodes for roles and users.