#Member & Role Pycord Option issue

1 messages · Page 1 of 1 (latest)

weary heath
#

I want to have it so that you can select a role or user like this:

async def remove(self, ctx, member_or_role: Option(discord.Role, discord.Member)):

However when I do this, I end up with this error:

TypeError: Command and option description must be of type str. Received "<class 'discord.member.Member'>"

How can I achieve this without getting an error?

nocturne yew
weary heath
#

I'll close this post if it works