await in_thread
This commit is contained in:
parent
1313500c59
commit
943813ced0
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ async def in_thread(member, thread):
|
||||||
|
|
||||||
|
|
||||||
async def can_view(ctx, member) -> bool:
|
async def can_view(ctx, member) -> bool:
|
||||||
if ctx.channel.type == ChannelType.private_thread and not in_thread(member, ctx.channel):
|
if ctx.channel.type == ChannelType.private_thread and not await in_thread(member, ctx.channel):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return ctx.channel.permissions_for(member).view_channel
|
return ctx.channel.permissions_for(member).view_channel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue