mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
remove duplicate @ on ban message
This commit is contained in:
parent
ad5ca98091
commit
c786adbf28
|
@ -85,7 +85,7 @@ export default {
|
||||||
.catch(e => message.reply(`Failed to ban user: \`${e}\``));
|
.catch(e => message.reply(`Failed to ban user: \`${e}\``));
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
message.reply(`### @${targetName} has been ${Math.random() > 0.8 ? 'ejected' : 'banned'}.\n`
|
message.reply(`### ${targetName} has been ${Math.random() > 0.8 ? 'ejected' : 'banned'}.\n`
|
||||||
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
|
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
|
||||||
logModAction('ban', message.serverContext, message.member!, targetUser._id, reason, infraction, `Ban duration: **Permanent**`),
|
logModAction('ban', message.serverContext, message.member!, targetUser._id, reason, infraction, `Ban duration: **Permanent**`),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue