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)
评论列表
文章目录