【发布时间】:2021-07-17 22:23:12
【问题描述】:
您好,我执行了一个服务器角色命令,它运行良好,但顶部角色显示在下方。我的代码是这样的:
@bot.command(pass_context=True)
async def roles(ctx):
guild = ctx.guild
roles = [role for role in guild.roles if role != ctx.guild.default_role]
embed = discord.Embed(title="Server Roles", description=f"\n \n".join([role.mention for role in roles]))
await ctx.send(embed=embed)
我希望高层角色从自上而下开始,我该怎么做?
如果有人帮助我,我会很高兴:)
【问题讨论】:
标签: python discord discord.py