From 943813ced0b4dca991471c1250486f1563c1d329 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 12 Feb 2025 10:54:58 -0500 Subject: [PATCH] await in_thread --- nomen/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomen/utils.py b/nomen/utils.py index 65c9a8d..1782d56 100644 --- a/nomen/utils.py +++ b/nomen/utils.py @@ -124,7 +124,7 @@ async def in_thread(member, thread): 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 ctx.channel.permissions_for(member).view_channel