From ee41a775d56d2fe4c581c140aa7740ebd550491f Mon Sep 17 00:00:00 2001 From: nolan Date: Sun, 24 May 2020 16:45:47 -0500 Subject: [PATCH] what --- structure/client/components/settings/moderation/Mute.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/structure/client/components/settings/moderation/Mute.js b/structure/client/components/settings/moderation/Mute.js index c5eadeb..786e64e 100644 --- a/structure/client/components/settings/moderation/Mute.js +++ b/structure/client/components/settings/moderation/Mute.js @@ -14,8 +14,11 @@ class MuteSetting extends Setting { 'mutedType', 'muteRole', 'mutedRole', - 'createMute' - ], + 'createMute', + 'createMuteRole', + 'createMuted', + 'createMutedRole' + ], //people really be stupid like that arguments: [ { name: 'create', @@ -83,7 +86,7 @@ class MuteSetting extends Setting { let role = null; let updatedPermissions = false; let created = false; - if(parsedArguments.create || message._settingCaller === 'createmute') { + if(parsedArguments.create || ['createmute', 'createmuted', 'createmutedrole', 'createmuterole'].includes(message._settingCaller)) { const missing = message.channel.permissionsFor(message.guild.me).missing('MANAGE_ROLES'); if(missing.length > 0) return { msg: message.format('S_MUTE_ROLEMISSINGPERMISSION'),