forked from Galactic/galactic-bot
what
This commit is contained in:
parent
0444145e28
commit
ee41a775d5
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user