on-internet
← Community

TypeError: 'coroutine' object does not support the asynchronous context manager protocol

Stack Overflow ·

Trying to make an invite manager I get: async with cursor.execute("SELECT id, uses FROM invites WHERE guild_id = ?", (member.guild.id,)) as cursor: RuntimeWarning: Enable tracemalloc to get the object allocation traceback Ignoring exception in on_member_join Traceback (most recent call last): File "C:\Users\Zacha\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\client.py", line 378, in _run_event await coro(*args, **kwargs) File "D:\Projects\SkriptsNet-Bot\modules\invites.py", line 48, in on_member_join async with cursor.execute("SELECT id, uses FROM invites WHERE guild_id = ?

Comments

Sign in or sign up to comment and upvote.

No comments yet.