converters.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:dogbot 作者: slice 项目源码 文件源码
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.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号