Implement logging for verification failures and enhance moderation responses
- Introduced a new logging event type `VERIFICATION_FAIL` to capture details of failed verification attempts, including reasons and actions taken. - Updated moderation commands to include reasons in success messages for actions like ban, kick, and timeout. - Enhanced the logging of ban and kick actions to include moderator information and reasons fetched from the audit log. - Improved localization for new logging messages in both English and German. - Documented changes in the phase tracking documentation to reflect the new logging capabilities and verification failure handling.
This commit is contained in:
@@ -76,7 +76,10 @@ export async function executeBan(
|
||||
}
|
||||
|
||||
await interaction.editReply({
|
||||
content: tf(locale, 'moderation.success.case', { caseNumber: modCase.caseNumber }),
|
||||
content: tf(locale, 'moderation.success.caseWithReason', {
|
||||
caseNumber: modCase.caseNumber,
|
||||
reason: payload.reason
|
||||
}),
|
||||
components: []
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user