Discord.py: get online status

Created on 13 Jan 2018  路  4Comments  路  Source: Rapptz/discord.py

i want my bot to get all the players that are online atm
but when i try it doesnt give an output.

for member in bot.get_all_members():
        if member.status == "online":
             print(member.name, member.status)

i hope you could help me.
its probably something stupid

Most helpful comment

Unfortunately that doesn't change that this issues board is not a board for basic bot help. Find some time to join the Discord and get help there.

All 4 comments

The github issues are really for bugs and such with the lib, not really for code help. If you need help, there's a good community in the support server:
https://discord.gg/discord-api

im not someone who's always home or has time to go to discord

Unfortunately that doesn't change that this issues board is not a board for basic bot help. Find some time to join the Discord and get help there.

nvm already found it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0x78f1935 picture 0x78f1935  路  20Comments

johndoe434 picture johndoe434  路  21Comments

haaddaa1 picture haaddaa1  路  14Comments

Shea4 picture Shea4  路  21Comments

Mercurial picture Mercurial  路  22Comments