This commit is contained in:
Erik 2020-05-25 00:43:15 +03:00
parent 873d193501
commit baeccab762

View File

@ -90,7 +90,7 @@ class MuteSetting extends Setting {
error: true error: true
}; };
const foundRole = await this.client.resolver.resolveRole(args.join(' '), message.guild); const foundRole = await message.guild.resolveRole(args.join(' '));
if(foundRole) { if(foundRole) {
const prompt = await message.prompt(message.format('S_MUTE_ROLEPROMPT', { name: foundRole.name, id: foundRole.id }), { emoji: 'loading' }); const prompt = await message.prompt(message.format('S_MUTE_ROLEPROMPT', { name: foundRole.name, id: foundRole.id }), { emoji: 'loading' });
const response = prompt.content.toLowerCase(); const response = prompt.content.toLowerCase();