From 566183692a432c9819bdcd0a2ab1d04302545663 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 17 Jul 2022 16:02:07 +0300 Subject: [PATCH] clean-up of command options --- src/structure/components/commands/moderation/Roles.js | 4 ++++ src/structure/components/commands/moderation/Slowmode.js | 2 +- src/structure/components/commands/moderation/Unlockdown.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/structure/components/commands/moderation/Roles.js b/src/structure/components/commands/moderation/Roles.js index d27ef79..b91583a 100644 --- a/src/structure/components/commands/moderation/Roles.js +++ b/src/structure/components/commands/moderation/Roles.js @@ -25,6 +25,10 @@ class AddroleCommand extends ModerationCommand { description: 'Who to give to/take from', required: true, strict: true + }, { + name: 'duration', + type: 'TIME', + description: 'For how long the role should be given/taken.' }] }, ], diff --git a/src/structure/components/commands/moderation/Slowmode.js b/src/structure/components/commands/moderation/Slowmode.js index ab60e6d..df124e9 100644 --- a/src/structure/components/commands/moderation/Slowmode.js +++ b/src/structure/components/commands/moderation/Slowmode.js @@ -24,7 +24,7 @@ class SlowmodeCommand extends ModerationCommand { required: true } ], - skipOptions: [ 'users', 'force', 'expiration', 'points' ] + skipOptions: [ 'users', 'force', 'expiration', 'points', 'silent' ] }); } diff --git a/src/structure/components/commands/moderation/Unlockdown.js b/src/structure/components/commands/moderation/Unlockdown.js index a9c86fa..13831a5 100644 --- a/src/structure/components/commands/moderation/Unlockdown.js +++ b/src/structure/components/commands/moderation/Unlockdown.js @@ -11,14 +11,14 @@ class UnlockdownCommand extends ModerationCommand { options: [{ name: 'channels', type: 'CHANNELS', - description: 'The channels to lock', + description: 'The channels to unlock', required: true }], guildOnly: true, showUsage: true, memberPermissions: ['MANAGE_CHANNELS'], clientPermissions: ['MANAGE_CHANNELS', 'MANAGE_ROLES'], - skipOptions: ['users', 'points', 'expiration', 'force', 'silent'] + skipOptions: ['users', 'points', 'expiration', 'force', 'silent', 'prune'] }); }