Update required roles checker
This commit is contained in:
parent
35f7210b6e
commit
90ef4317cc
3 changed files with 18 additions and 11 deletions
|
@ -54,7 +54,7 @@ export default class Mute extends Command {
|
|||
const publicEmbed = new PublicEmbed(context, "", `${targetUser} has been muted`);
|
||||
publicEmbed.AddReason(reason);
|
||||
|
||||
const mutedRole = context.message.guild.roles.cache.find(role => role.name == process.env.COMMANDS_MUTE_ROLE);
|
||||
const mutedRole = context.message.guild.roles.cache.find(role => role.name == process.env.ROLES_MUTED);
|
||||
|
||||
if (!mutedRole) {
|
||||
const embed = new ErrorEmbed(context, ErrorMessages.RoleNotFound);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue