Can someone help me with this error? I've tried looking online but I can't find a fix for it.
Code
class Dev(commands.Cog):
dev = discord.SlashCommandGroup(name="dev", description="Dev")
def __init__(self, bot):
self.bot = bot
@dev.command(description="Can be used to load commands")
async def load_command(self, ctx, command):
for filename in os.listdir("./cogs"):
try:
self.bot.load_extension(f"cogs.{command}")
embed = discord.Embed(title = "Command Loaded", description="You have succesfully loaded the command", color = discord.Color.blue())
await ctx.respond(embed=embed)
print(f"[✅] {command} loaded ")
return
except discord.errors.ExtensionAlreadyLoaded:
embed = discord.Embed(title = "Command Already Loaded", description="This command is already loaded.", color = discord.Color.dark_orange())
await ctx.respond(embed=embed)
print(f"[✅] {command} already loaded ")
return
print(f"[🔧] {ctx.author} ({ctx.author.id}) used /dev load_command")
Error
discord.errors.ClientException: Callback for remove command is missing "context" parameter.