Up to 2.0.0b7 I could use the Mentionable type (Roles+Members) as arguments with the following syntax
async def test(self, ctx:discord.ApplicationContext, target:discord.Option((discord.Member, discord.Role), 'some info', required=True)):
pass
This is now throwing this Exception
File "C:\Users\Christian\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\cog.py", line 787, in load_extension
self._load_from_module_spec(spec, name)
File "C:\Users\Christian\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\cog.py", line 718, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.errors.ExtensionFailed: Extension 'cogs.TestCog' raised an error: TypeError: issubclass() arg 1 must be a class
I tried using decorators,
@discord.option(name='target', type=(discord.Member, discord.Role), required=True)
But the same exception is thrown.
Did the way of implementing Mentionable as argument change, or is this a bug (possibly related to the other thread about broken Options)?