3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Add moderator variable to mod action templates (#119)

This commit is contained in:
Nils 2020-12-12 21:29:08 +01:00 committed by GitHub
parent 497b76296d
commit ec3bf2739d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 1 deletions

View file

@ -46,6 +46,9 @@ export async function banUserId(
const banMessage = await renderTemplate(config.ban_message, {
guildName: pluginData.guild.name,
reason,
moderator: banOptions.caseArgs?.modId
? stripObjectToScalars(await resolveUser(pluginData.client, banOptions.caseArgs.modId))
: {},
});
notifyResult = await notifyUser(user, banMessage, contactMethods);