python - 如何让我的不和谐机器人列出我服务器中所有不和谐成员的嵌入?
问题描述
我试图让我的不和谐机器人显示我服务器中的所有成员,但它只显示对象,我如何让它显示成员?这是代码:
@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)
任何帮助将不胜感激,因为我是编码新手,我想完成这个问题。谢谢!
解决方案
推荐阅读
- html - CSS中的图像背景?
- python - 在流式传输实时视频时更改文本
- postscript - 谷歌驱动器和 PostScript;如何恢复 .ps 功能?
- angular - Angular 8 ng build --prod 在“Injectable”的模板编译期间给出错误
- python - Beautifulsoup html 解析损坏了标签
- java - 在我的android项目中传递一个令牌
- c++ - 如果 const char* 从函数返回,则 LPCWSTR 损坏
- angular - 如何使用单击将图像从组件显示到另一个?
- python - matplotlib.image.NonUniformImage 在 pdf 导出期间超出绘图区域
- sql - 如何仅为今天日期的记录创建唯一索引?