From f7c24b8a9c3457440a6c05b50dc08ab30e74dd63 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 21 Nov 2023 08:16:39 -0600 Subject: [PATCH] [Discord] Broaden audio undeafen command permission to administrators --- Discord/cogs/audio.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Discord/cogs/audio.py b/Discord/cogs/audio.py index a05d8363fb..2e01a6e2ee 100644 --- a/Discord/cogs/audio.py +++ b/Discord/cogs/audio.py @@ -1083,7 +1083,10 @@ async def mute(self, ctx): @audio.command(name = "undeafen") @checks.is_voice_connected() - @commands.check_any(checks.is_permitted(), checks.is_guild_owner()) + @commands.check_any( + checks.is_permitted(), commands.has_permissions(administrator = True), + commands.is_owner() + ) async def audio_undeafen(self, ctx): '''Have me undeafen myself''' # Note: undeafen command invokes this command @@ -1098,7 +1101,10 @@ async def audio_undeafen(self, ctx): @commands.command() @checks.is_voice_connected() - @commands.check_any(checks.is_permitted(), checks.is_guild_owner()) + @commands.check_any( + checks.is_permitted(), commands.has_permissions(administrator = True), + commands.is_owner() + ) async def undeafen(self, ctx): '''Have me undeafen myself''' if command := ctx.bot.get_command("audio undeafen"):