#TypeError: object list can't be used in 'await' expression

1 messages · Page 1 of 1 (latest)

tropic niche
#
async def on_ready():
    for cmd_file in CMDS_PATH.glob("*.py"):
        if cmd_file.name != "__init__.py":
            await bot.load_extension(f"cmds.{cmd_file.name[:-3]}")
#

this is the piece of code hes having an error with