From baeccab762222025df2c80c131f3f56f64b96e23 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 25 May 2020 00:43:15 +0300 Subject: [PATCH] some bs --- structure/client/components/settings/moderation/Mute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/client/components/settings/moderation/Mute.js b/structure/client/components/settings/moderation/Mute.js index c5eadeb..6a317e3 100644 --- a/structure/client/components/settings/moderation/Mute.js +++ b/structure/client/components/settings/moderation/Mute.js @@ -90,7 +90,7 @@ class MuteSetting extends Setting { error: true }; - const foundRole = await this.client.resolver.resolveRole(args.join(' '), message.guild); + const foundRole = await message.guild.resolveRole(args.join(' ')); if(foundRole) { const prompt = await message.prompt(message.format('S_MUTE_ROLEPROMPT', { name: foundRole.name, id: foundRole.id }), { emoji: 'loading' }); const response = prompt.content.toLowerCase();