/eject => /ban
This commit is contained in:
parent
e622914f19
commit
ad5ca98091
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ Day.extend(RelativeTime);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ban',
|
name: 'ban',
|
||||||
aliases: null,
|
aliases: [ 'eject' ],
|
||||||
description: 'Ban a member from the server',
|
description: 'Ban a member from the server',
|
||||||
syntax: '/ban @username [10m|1h|...?] [reason?]',
|
syntax: '/ban @username [10m|1h|...?] [reason?]',
|
||||||
removeEmptyArgs: true,
|
removeEmptyArgs: true,
|
||||||
|
@ -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 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**`),
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { isModerator, NO_MANAGER_MSG, parseUser, storeInfraction } from "../util
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'kick',
|
name: 'kick',
|
||||||
aliases: [ 'yeet', 'eject', 'vent' ],
|
aliases: [ 'yeet', 'vent' ],
|
||||||
description: 'Eject a member from the server',
|
description: 'Eject a member from the server',
|
||||||
syntax: '/kick @username [reason?]',
|
syntax: '/kick @username [reason?]',
|
||||||
removeEmptyArgs: true,
|
removeEmptyArgs: true,
|
||||||
|
@ -62,7 +62,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
message.reply(`### @${targetUser.username} has been ${Math.random() > 0.8 ? 'ejected' : 'kicked'}.\n`
|
message.reply(`### @${targetUser.username} has been ${Math.random() > 0.8 ? 'yeeted' : 'kicked'}.\n`
|
||||||
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
|
+ `Infraction ID: \`${infId}\` (**#${userWarnCount}** for this user)`),
|
||||||
logModAction('kick', message.serverContext, message.member!, targetUser._id, reason, infraction),
|
logModAction('kick', message.serverContext, message.member!, targetUser._id, reason, infraction),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue