RBWCM-SDK Documentation - v1.1.0
    Preparing search index...

    Class PermissionsManager

    Manages API operations related to the RBAC (Role-Based Access Control) system. Allows for checking permissions, and granting/revoking nodes for roles and users.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: RankedClient

    Methods

    • Checks if a user has a specific permission node. Automatically resolves wildcard nodes (e.g., admin.*).

      Parameters

      • dto: CheckPermissionDto

        The data required to check the permission (discordId/ign, roles, and the required node).

      Returns Promise<boolean>

      A promise resolving to a boolean indicating whether access is granted.

      const isAllowed = await client.permissions.check({
      discordId: '466861191931756544',
      roles: ['role_id_1', 'role_id_2'],
      node: 'command.staff.ban'
      });