def union(*classes):
class Union(commands.Converter):
async def convert(self, ctx, argument):
for cls in classes:
try:
if cls in converters:
cls = converters[cls]
return await cls.convert(self, ctx, argument)
except Exception as e:
pass
else:
raise e
return Union
评论列表
文章目录