首页 > 解决方案 > 如何让我的不和谐机器人列出我服务器中所有不和谐成员的嵌入?

问题描述

我试图让我的不和谐机器人显示我服务器中的所有成员,但它只显示对象,我如何让它显示成员?这是代码:

@bot.command(pass_context=True)
async def memberlist(ctx):
    embed = discord.Embed(title="Server name", color=0x00ff00)
    embed.add_field(name="Member List:", value= ctx.message.server.members, inline=False)
    await bot.say(embed=embed)

任何帮助将不胜感激,因为我是编码新手,我想完成这个问题。谢谢!

标签: pythonbotsdiscorddiscord.py

解决方案


推荐阅读