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

Spyder-exe picture Spyder-exe  路  3Comments

PicklesJars picture PicklesJars  路  3Comments

TunaHobby picture TunaHobby  路  3Comments

Be4Vision picture Be4Vision  路  3Comments

reuscam picture reuscam  路  3Comments