Instantiates a new RolePermissionEntity.
The active SDK client instance.
The raw role permission data from the API.
Grants a new permission node to this role.
The permission node to add.
A promise resolving to the updated RolePermissionEntity.
Revokes a permission node from this role.
The permission node to remove.
A promise resolving to the updated RolePermissionEntity.
Updates the readable name of this role.
The new name.
A promise resolving to the updated RolePermissionEntity.
Represents a set of permissions assigned to a specific Discord role. Provides helper methods to manage nodes directly from the entity instance.