From 83da6d09fcdaef18c56ad27c019cfad5d4e065df Mon Sep 17 00:00:00 2001 From: eip <36315290+eip618@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:58:35 +1000 Subject: [PATCH] Unmatched ) inb4 whitespace saga Unexpected indent --- cogs/extras.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/extras.py b/cogs/extras.py index 5a5ecc188..78f9b1861 100644 --- a/cogs/extras.py +++ b/cogs/extras.py @@ -169,7 +169,8 @@ async def uptime(self, ctx: KurisuContext): @commands.command(hidden=True, aliases=['copyrole', 'crp']) async def copyroleperms(self, ctx: GuildContext, role: discord.Role, src_channel: discord.TextChannel | discord.VoiceChannel, des_channels: commands.Greedy[discord.TextChannel | discord.VoiceChannel]): """Copy role overwrites from a channel to channels""" - if any(type(c) != type(src_channel) for c in des_channels): + channel_type = type(src_channel) + if any(not isinstance(c, channel_type)) for c in des_channels: return await ctx.send("Voice channels and text channel permissions are incompatible!") role_overwrites = src_channel.overwrites_for(role) for c in des_channels: