Skip to content Skip to sidebar Skip to footer

Discord.py Membernotfound Exception When Passing A Real Member

When I pass *grant @wolex9 add in Discord I get the following exception: Ignoring exception in command grant: Traceback (most recent call last): File '/Users/test/PycharmProjects

Solution 1:

You kind of messed up with the order of your arguments in your code I believe.

asyncdefgrant(ctx, *, member: discord.Member = None, command=None):

I think it should be this instead, so you can separate the command and the member.

asyncdefgrant(ctx, member: discord.Member = None, *, command=None):

Post a Comment for "Discord.py Membernotfound Exception When Passing A Real Member"