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: '