Skip to content

Commit 83da6d0

Browse files
committed
Unmatched )
inb4 whitespace saga Unexpected indent
1 parent 6640ec9 commit 83da6d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cogs/extras.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ async def uptime(self, ctx: KurisuContext):
169169
@commands.command(hidden=True, aliases=['copyrole', 'crp'])
170170
async def copyroleperms(self, ctx: GuildContext, role: discord.Role, src_channel: discord.TextChannel | discord.VoiceChannel, des_channels: commands.Greedy[discord.TextChannel | discord.VoiceChannel]):
171171
"""Copy role overwrites from a channel to channels"""
172-
if any(type(c) != type(src_channel) for c in des_channels):
172+
channel_type = type(src_channel)
173+
if any(not isinstance(c, channel_type)) for c in des_channels:
173174
return await ctx.send("Voice channels and text channel permissions are incompatible!")
174175
role_overwrites = src_channel.overwrites_for(role)
175176
for c in des_channels:

0 commit comments

Comments
 (0)