Instantiates a new UserEntity.
The active SDK client instance.
The raw user data from the API.
Adds a new note to this user's profile.
The content of the note to add.
The Discord ID of the staff member adding the note.
A promise resolving to the newly created NoteEntity.
Bans the user with the specified details.
The details of the ban, including reason, duration, and staffer information.
A promise resolving to the newly created BanEntity.
Clears all active strikes for this user.
A promise resolving to the number of strikes that were cleared.
Creates a new party with this user as the leader.
A promise resolving to the newly created PartyEntity.
Retrieves all active strikes for this user.
A promise resolving to an array of StrikeEntity representing the user's active strikes.
Fetches the user's statistics for the currently active season of a specific ranked system.
The system uuid (e.g., '123e4567-e89b-12d3-a456-426614174000').
A promise resolving to a StatisticsEntity.
Fetches the user's recent game history.
The maximum number of recent games to retrieve (default is 10).
A promise resolving to an array of GameEntity representing the user's recent games.
Fetches all notes associated with this user.
A promise resolving to an array of NoteEntity representing the user's notes.
Fetches the party this user currently belongs to.
A promise resolving to the PartyEntity, or null if the user is solo.
Fetches the user's current rank for a specific ranked system based on their ELO.
The system uuid (e.g., '123e4567-e89b-12d3-a456-426614174000').
A promise resolving to a RankEntity representing the user's current rank.
Fetches the user's statistics for a specific competitive season.
The uuid of the season.
A promise resolving to a StatisticsEntity.
Retrieves the user's strike history, including both active and removed strikes.
A promise resolving to an array of StrikeEntity representing the user's strike history.
Grants a permission node directly to this user (bypassing roles).
The permission node to grant.
A promise resolving to the updated UserPermissionEntity.
Checks if the user has the specified permission.
The permission node to check.
OptionalactiveRoles: string[]The roles to consider for permission checking.
A promise resolving to true if the user has the permission, or false otherwise.
Revokes a specific permission node directly from this user.
The permission node to revoke.
A promise resolving to the updated UserPermissionEntity.
Issues a strike to this user.
The strike details.
A promise resolving to the newly created StrikeEntity.
Lifts an active ban from this user.
The unban details.
A promise resolving to the updated BanEntity.
Removes a specific strike from this user.
The unique ID of the strike to remove.
The details of the strike removal.
A promise resolving to the updated StrikeEntity.
Updates the user's linked Discord ID.
The new Discord snowflake ID.
A promise resolving to the updated UserEntity instance.
Updates the user's In-Game Name (IGN) and syncs the entity with the backend.
The new Minecraft name.
A promise resolving to the updated UserEntity instance.
Represents a user within the RBWCM ecosystem. Provides helper methods to update user data and fetch statistics directly from the entity instance.