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:
parent
497b76296d
commit
ec3bf2739d
4 changed files with 17 additions and 1 deletions
|
@ -39,6 +39,9 @@ export async function kickMember(
|
|||
const kickMessage = await renderTemplate(config.kick_message, {
|
||||
guildName: pluginData.guild.name,
|
||||
reason,
|
||||
moderator: kickOptions.caseArgs?.modId
|
||||
? stripObjectToScalars(await resolveUser(pluginData.client, kickOptions.caseArgs.modId))
|
||||
: {},
|
||||
});
|
||||
|
||||
notifyResult = await notifyUser(member.user, kickMessage, contactMethods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue