我想用 discord.py 创建一个配置文件命令,我希望嵌入消息具有成员的最高角色颜色。
我的代码:
@client.command(passContent=True)
@commands.has_role("🍿║Участники")
async def профиль(ctx, member: discord.Member):
colour=member.Colour.default()
профиль_сообщение=discord.Embed(
title=f'Профиль {ctx.author.name}',
colour=colour
)
await ctx.send(embed=профиль_сообщение)
错误:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Member' object has no attribute 'Colour'
智慧大石
相关分类