def convert(self, ctx, argument):
for converter in (MemberConverter, UserConverter):
try:
return await converter().convert(ctx, argument)
except commands.BadArgument:
pass
try:
return await ctx.bot.get_user_info(argument)
except discord.HTTPException:
raise commands.BadArgument("That user wasn't found.")
评论列表
文章目录