From 860c0c0bfb078868db5f204f1b07633f96b5223c Mon Sep 17 00:00:00 2001 From: nolan Date: Thu, 10 Jun 2021 22:39:40 -0700 Subject: [PATCH] Separate nickname & dehoist command, created a description for old -> new nicknames in embed. --- .../components/commands/moderation/Dehoist.js | 96 +++++++++++++++++++ .../commands/moderation/Nickname.js | 23 ++--- .../languages/en_us/en_us_arguments.lang | 17 ++++ .../languages/en_us/en_us_commands.lang | 11 ++- .../languages/en_us/en_us_general.lang | 7 +- structure/moderation/infractions/Nickname.js | 19 ++-- 6 files changed, 149 insertions(+), 24 deletions(-) create mode 100644 structure/client/components/commands/moderation/Dehoist.js diff --git a/structure/client/components/commands/moderation/Dehoist.js b/structure/client/components/commands/moderation/Dehoist.js new file mode 100644 index 0000000..67a7616 --- /dev/null +++ b/structure/client/components/commands/moderation/Dehoist.js @@ -0,0 +1,96 @@ +const { Command } = require('../../../../interfaces/'); +const { Nickname } = require('../../../../moderation/infractions/'); + +class DehoistCommand extends Command { + + constructor(client) { + + super(client, { + name: 'dehoist', + module: 'moderation', + usage: " [reason]", + clientPermissions: ['MANAGE_NICKNAMES'], + memberPermissions: ['MANAGE_NICKNAMES'], + examples: [ + "@Navy#1998 hoisting ontop of the member list" + ], + arguments: [ + { + name: 'points', + aliases: ['point', 'modpoints', 'modpoint', 'pts', 'pt'], + type: 'INTEGER', + types: ['VERBAL', 'FLAG'], + usage: '', + default: (guild) => { + return guild._settings.moderationPoints.points.MUTE; + }, + min: 0, max: 100, + ignoreInvalid: true, + required: true + }, + { + name: 'expiration', + aliases: ['expire', 'expires', 'expirations'], + type: 'TIME', + types: ['FLAG'], + usage: '