Hi I am getting this error when I try to run a command:
Ignoring exception in command greet discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing
And when I try to manually pass the context with pass_context=True (I know this is outdated I think)It comes up with: AttributeError: 'Context' object has no attribute 'send'
I have looked everywhere on various forums and I have found others with the same problem but the answers were always specific to that one user's issue and so were useless to me or were outdated, not using the rewrite. I would really appreciate it if someone could help.
Does anyone know why I am getting this and how I could fix it?
Here is what I think is the useful part of the code:
@client.command()
async def greet(ctx):
await ctx.send("Hello")
Here is the full code: https://pastebin.com/fQc4vE7F
Edit: I am on discord version 1.4.1 in case that might be useful