3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +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 d7d9178b2a
commit 87b2798a96
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);