This commit is contained in:
nolan 2020-05-24 16:45:47 -05:00
parent 0444145e28
commit ee41a775d5

View File

@ -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'),