From 92dbd140064cbc5ed4723048e32bcb8c7b967fbd Mon Sep 17 00:00:00 2001 From: Kowlin Date: Mon, 5 Nov 2018 04:19:54 +0100 Subject: [PATCH] Fixes typos in permissions (#2288) causing the checks to be thrown out of the window. --- redbot/cogs/mod/mod.py | 4 ++-- redbot/core/core_commands.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redbot/cogs/mod/mod.py b/redbot/cogs/mod/mod.py index c2b0211a6..5160d2352 100644 --- a/redbot/cogs/mod/mod.py +++ b/redbot/cogs/mod/mod.py @@ -877,7 +877,7 @@ class Mod(commands.Cog): @commands.group() @commands.guild_only() - @checks.mod_or_permissions(manage_channel=True) + @checks.mod_or_permissions(manage_channels=True) async def mute(self, ctx: commands.Context): """Mute users.""" pass @@ -1033,7 +1033,7 @@ class Mod(commands.Cog): @commands.group() @commands.guild_only() @commands.bot_has_permissions(manage_roles=True) - @checks.mod_or_permissions(manage_channel=True) + @checks.mod_or_permissions(manage_channels=True) async def unmute(self, ctx: commands.Context): """Unmute users.""" pass diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index a37e72f62..011ee0d92 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1698,7 +1698,7 @@ class Core(commands.Cog, CoreLogic): await ctx.tick() @commands.guild_only() - @checks.guildowner_or_permissions(manage_server=True) + @checks.guildowner_or_permissions(manage_guild=True) @commands.group(name="autoimmune") async def autoimmune_group(self, ctx: commands.Context): """