How to print a list of guild members?

前端 未结 0 1909
傲寒
傲寒 2021-01-28 01:58

Here\'s the code:

@bot.command()
async def test(ctx):
    for member in ctx.message.guild.members:
        print(member.name)

Results: Discord Bo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题