Merge branch 'master' of https://github.com/janderedev/automod
This commit is contained in:
commit
eda92cd83a
3 changed files with 5 additions and 1 deletions
|
@ -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.'
|
||||||
: '')
|
: '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.
Loading…
Reference in a new issue