I have a public bot that has cogs, but I just tested that if I load/unload a cog then it'll load/unload that cog across every server it's in, this of course is something that's horrible for a public bot
I'll show my load & unload command:
@client.command()
async def load(ctx, extension):
client.load_extension(f"cogs.{extension}")
await ctx.send(f"Successfully loaded the {extension} module :thumbsup: ")
@load.error
async def load_error(ctx, error):
await ctx.send(f"The following error occured:```\n{error}\n```")
is the load command, and:
@client.command()
async def unload(ctx, extension):
client.unload_extension(f"cogs.{extension}")
await ctx.send(f"Successfully unloaded the {extension} module :thumbsup: ")
@unload.error
async def unload_error(ctx, error):
await ctx.send(f"The following error occured:```\n{error}\n```")
is the unload command
Edit: I wouldn't mind trying something other than what I'm attempting