Discord.py: Example for get_all_members()

Created on 27 Feb 2016  路  3Comments  路  Source: Rapptz/discord.py

I don't understand how get_all_members() can be harnessed so it prints every username and ID for every member in the console. Could I get an example on it?

question

All 3 comments

for member in get_all_members:
print(member.name, member.id)

Oh cool, thanks. There's very little documentation on Generators.

https://docs.python.org/3.5/tutorial/classes.html#generators

if you need a reference that whole tutorial is pretty good

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TomOrth picture TomOrth  路  15Comments

marcoshuck picture marcoshuck  路  16Comments

SakiiR picture SakiiR  路  17Comments

johndoe434 picture johndoe434  路  21Comments

AceKiron picture AceKiron  路  23Comments