Adds a new strike to a user. If the strike threshold is reached, this will automatically trigger a ban on the backend.
The internal database ID of the user.
The payload containing strike details.
A promise resolving to the newly created StrikeEntity.
Issues a new ban to a user. If the user already has an active ban, it will be replaced.
The internal database ID of the user to ban.
The payload containing ban details (reason, staffer, expiration).
A promise resolving to the newly created BanEntity.
Clears all active strikes for a specific user.
The internal database ID of the user.
A promise resolving to an object containing the success message.
Retrieves all active strikes for a specific user.
The internal database ID of the user.
A promise resolving to an array of StrikeEntity.
Removes a specific strike manually.
The unique ID of the strike to remove.
The payload containing removal details.
A promise resolving to an object containing the success message.
Lifts an active ban from a user.
The internal database ID of the user to unban.
The payload containing unban details.
A promise resolving when the unban is successful.
Manages API operations related to User Punishments (Bans and Strikes).