add tos reminder to ban DM

This commit is contained in:
Lea 2022-12-29 22:30:07 +01:00 committed by GitHub
parent b99e736e9d
commit 1c162a324f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,6 +379,10 @@ const generateInfractionDMEmbed = (server: Server, serverConfig: ServerConfig, i
? (infraction.expires == Infinity ? (infraction.expires == Infinity
? '\n**Ban duration:** Permanent' ? '\n**Ban duration:** Permanent'
: `\n**Ban expires** <t:${Math.round(infraction.expires / 1000)}:R>`) : `\n**Ban expires** <t:${Math.round(infraction.expires / 1000)}:R>`)
: '') +
(infraction.actionType == 'ban'
? '\n\n**Reminder:** Circumventing this ban by using another account is a violation of the Revolt [Terms of Service](<https://revolt.chat/terms>) ' +
'and may result in your accounts getting suspended from the platform.'
: '') : '')
} }