Skip to content

Commit

Permalink
Unmatched )
Browse files Browse the repository at this point in the history
inb4 whitespace saga

Unexpected indent
  • Loading branch information
eip618 committed Aug 2, 2023
1 parent 6640ec9 commit 83da6d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 83da6d0

Please sign in to comment.