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 the number of strikes that were cleared.
Retrieves all active strikes for a specific user.
The internal database ID of the user.
A promise resolving to an array of StrikeEntity.
Retrieves the entire strike history for a specific user, including both active and removed strikes.
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 the updated StrikeEntity.
Lifts an active ban from a user.
The internal database ID of the user to unban.
The payload containing unban details.
A promise resolving to the updated BanEntity.
Manages API operations related to User Punishments (Bans and Strikes).