#missing 1 required positional argument: 'ctx'

1 messages · Page 1 of 1 (latest)

dark fog
#

How come I get this error when loading an extension? As you can see ctx is not missing in the code

cold vesselBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

dark fog
#

Actually the function causing the error is this:

async def sei_pit(self, ctx: BaseContext):
        return ctx.author_id in [ List of ids ]```
#

BaseContext causing issues?

#

Hmm it works only if I remove "self", I don't really know whether it's intended

hexed nexus
hexed nexus
dark fog
dark fog
#

The function itself is the full one (beside the fact I didn't paste the list there)