sravan1946 / sravan-cogs

Some random cogs made by me for my bot made using Red-DiscordBot
MIT License
5 stars 10 forks source link

Error on some commands in perform #11

Closed sravan1946 closed 1 year ago

sravan1946 commented 1 year ago

Describe the bug Commands which doesnt require an user as input errors

Traceback (most recent call last):
  File "{HOME}/fakeenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "{HOME}/data/fakebot/cogs/CogManager/cogs/perform/perform.py", line 794, in happy
    await send_embed(self, ctx, embed)
TypeError: send_embed() missing 1 required positional argument: 'user'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "{HOME}/fakeenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "{HOME}/fakeenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "{HOME}/fakeenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: send_embed() missing 1 required positional argument: 'user'

Just making the user argument in the send_embed() funtion should fix it :aha: