This commit is contained in:
Lea 2023-01-07 17:37:01 +01:00
commit eda92cd83a
No known key found for this signature in database
GPG key ID: 1BAFFE8347019C42
3 changed files with 5 additions and 1 deletions

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.'
: '') : '')
} }

View file

@ -236,7 +236,7 @@ client.on("message", async (message) => {
const payload: MessagePayload | WebhookMessageOptions = { const payload: MessagePayload | WebhookMessageOptions = {
content: content:
typeof message.content == "string" message.content
? await renderMessageBody(message.content) ? await renderMessageBody(message.content)
: message.system : message.system
? await renderSystemMessage(message.system) ? await renderSystemMessage(message.system)

Binary file not shown.