I've got a question, I need to get a list from all members from all servers where the bot is online(I'm using discord.py rewrite), Right now I have this code-snipped:
@bot.command()
async def members(ctx):
for guild in bot.guilds:
for member in guild.members:
print(member)
The program outputs the Bots name 3 times because the bot is on 3 servers.
Thank you!

所有评论(0)