mirror of
https://github.com/danbulant/Shasha
synced 2026-06-19 14:21:37 +00:00
fix bug
This commit is contained in:
parent
d82661d347
commit
ee864bfefa
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,9 @@ module.exports = class mute extends commando.Command {
|
|||
duration = durationFn(msg.editedAt || msg.createdAt, ARG.trim());
|
||||
} else reason = ARG.trim();
|
||||
}
|
||||
} else if (!MUTE.role || !msg.guild.roles.cache.get(MUTE.role)) {
|
||||
}
|
||||
|
||||
if (!MUTE.role || !msg.guild.roles.cache.get(MUTE.role)) {
|
||||
return trySend(this.client, msg, `No mute role configured!\n\n**[ADMINISTRATOR]**\nRun \`${msg.guild.commandPrefix + this.name} --s -r role_[name|ID|mention] -d [duration]\` to set it up.\n` +
|
||||
`Or if you're too lazy you can run \`${msg.guild.commandPrefix + this.name} --cmr -n [name] -c color_[name|hex|number]\` to make a new mute role and let me set it up for you. ` +
|
||||
`You can view server as the new mute role and override my default settings later.\n` +
|
||||
|
|
|
|||
Loading…
Reference in a new issue