This repository was archived by the owner on May 13, 2025. It is now read-only.
Description User Message: !unban <@325226054559989761>
Error: object async_generator can't be used in 'await' expression
Traceback:
Traceback (most recent call last ):
File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py" , line 229 , in wrapped
ret = await coro (* args , ** kwargs )
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
File "/home/exohayvan/Desktop/atsuko/bot-old/commands/main/moderation/Moderation.py" , line 103 , in unban
banned_users = await ctx .guild .bans ()
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
TypeError : object async_generator can 't be used in ' await ' expression
The above exception was the direct cause of the following exception :
Traceback (most recent call last ):
File "/usr/lib/python3/dist-packages/discord/ext/commands/bot.py" , line 1349 , in invoke
await ctx .command .invoke (ctx )
File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py" , line 1023 , in invoke
await injected (* ctx .args , ** ctx .kwargs ) # type: ignore
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py" , line 238 , in wrapped
raise CommandInvokeError (exc ) from exc
discord .ext .commands .errors .CommandInvokeError : Command raised an exception : TypeError : object async_generator can 't be used in ' await ' expression
Command: unban
Author: f8talcvt#0
Channel: •ᴀᴛꜱᴜᴋᴏ•
Python Version: 3.11.4 (main, Dec 7 2023, 15:43:41) [GCC 12.3.0]
discord.py Version: 2.1.1
OS: Linux 6.2.0-39-generic
Reactions are currently unavailable
User Message: !unban <@325226054559989761>
Error: object async_generator can't be used in 'await' expression
Traceback:
Command:
unbanAuthor: f8talcvt#0
Channel: •ᴀᴛꜱᴜᴋᴏ•
Python Version:
3.11.4 (main, Dec 7 2023, 15:43:41) [GCC 12.3.0]discord.py Version:
2.1.1OS:
Linux 6.2.0-39-generic