Error for getting list of online players
See original GitHub issueSummary
I run it and it gives an error
Reproduction Steps
def notify(msg, role: discord.Role): guild = client.get_guild(*************) for member in guild.members: if role in member.roles: pass notify(‘hi’,‘lol’)
Run it. It gives error
Minimal Reproducible Code
def notify(msg, role: discord.Role):
guild = client.get_guild(************)
for member in guild.members:
if role in member.roles:
pass
notify('hi','lol')
Expected Results
It to pass every time it finds someone with the role “lol”
Actual Results
It gave the error
Intents
?? I’m new, idk what this means
System Information
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:27
Top Results From Across the Web
Error while getting all online players of a bungee server
Getting all the online players on the bungeecord server does work, but getting all players on a specific server doesn't. Code: Code (Text):....
Read more >Solved - How to get online players? | Bukkit Forums
Hello, I've been working on a plugin that helps communication between staff and players. For this, I need to get the list of...
Read more >Minecraft Connection Refused Server Error - Apex Hosting
The “Connection Refused” error typically means your attempt at connecting ... server on the Multiplayer list in-game, use the direct method.
Read more >Black Ops Cold War "Disconnected from Server" error
Call of Duty: Black Ops Cold War players have been facing the "Disconnected from Server" error on PCs. Here's a series of steps...
Read more >Warzone not showing Friends Online; Here's how to fix this ...
Warzone not showing friends online is an error that many players have been distressed about. Check out how to fix friends list not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
idk than
Solved by the discord! Thx everyone,