When a user gets banned, the hook should fire and check if a record in the database exist for the current user ban. If not one should be created. It could be of interest to parse the optional(!) audit log field reason for integrated discord support. This helps if the admins do not want to use commands to ban a person, but simply the old fashioned ban system.
The issue here is to understand which database entry is for the last entry if it already exist.
When a user gets banned, the hook should fire and check if a record in the database exist for the current user ban. If not one should be created. It could be of interest to parse the optional(!) audit log field
reason
for integrated discord support. This helps if the admins do not want to use commands to ban a person, but simply the old fashioned ban system.The issue here is to understand which database entry is for the last entry if it already exist.