#reloading cogs error

1 messages · Page 1 of 1 (latest)

tardy hawk
#

im trying to reload my cogs but im getting this error

@bot.slash_command(name="reload", description="reloads commands")
async def reload(ctx):
    if ctx.author.id == 647371029458452482:
        await ctx.respond("reloading")
        bot.reload_extension(f'cogs.{cogs}')
        await ctx.respond(f"reloaded {cogs}")
charred linden
tardy hawk
true matrix
tardy hawk
#

Yes

tardy hawk
true matrix
#

👍

true matrix