perms.py 文件源码

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

项目:Excalibot 作者: endreman0 项目源码 文件源码
def destruct(self, ctx, value : int):
        """Shows each permission in the given bit flags."""
        e = discord.Embed(type='rich', title='Permissions Deconstruction', color=blurple)
        perms = discord.Permissions(value)
        e.add_field(name='Value', value='%d (%s)' % (value, hex(value)))
        e.add_field(name='Permissions', value='```%s```' % '\n'.join(prettify(name) for name, has in perms if has), inline=False)
        await ctx.send(embed=e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号