question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error for getting list of online players

See original GitHub issue

Summary

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 59200D02-1B5C-45FD-BA6E-C08419FE0193

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 0138FA08-8A7B-43BE-903B-7C1AFD06F2AD

Intents

?? I’m new, idk what this means

System Information

0DDBEBDF-3C7E-47DF-82FD-A75471A5570C

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:closed
  • Created a year ago
  • Comments:27

github_iconTop GitHub Comments

1reaction
pintermor9commented, Mar 29, 2022

idk than

0reactions
thatrandomperson5commented, Mar 29, 2022

Solved by the discord! Thx everyone,

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found