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.

Can`t get full list of user

See original GitHub issue

I tried to get all user list of my guild (400members). But,returned response has just 270 users. This is sample of my source code. How to get full user list of my guild ? Thany kou!

Discord.NET 2.0.1 .Net Frame Wordk 4.6.1

var client = new DiscordSocketClient();
var token = "secret"
await client.LoginAsync(TokenType.Bot, token);
await client.StartAsync();
//this returned users list has just  270 elements.
var users=client.Guilds.ToList()[0].Users.ToList();

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Joe4evrcommented, Feb 12, 2019
2reactions
AntiTcbcommented, Feb 12, 2019

Guild information isn’t completed in its retrieval and processing until the Ready event is fired. Put all your logic in an event handler for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to extract full user list from AD OUs having 2000+ ...
I want to extract all users in Active Directory, using the following command. Few OUs have more than 2000 user accounts. Here using...
Read more >
How to list all the users on a Windows computer (7 ways)
Open Computer Management, and go to Local Users and Groups > Users. On the right side, you get to see all the user...
Read more >
How to see all existing user accounts on Windows 10
Open Start. · Search for Command Prompt and click the top result. · Type the following command to list all the existing accounts...
Read more >
User list entries cannot be seen by anyone but that user
i have a user that when they add an item to a list, they are the only user that can see the item....
Read more >
Export List of All AD user accounts
Just go to Active Directory Users & Computers -> User OU. In the toolbar at the top there's an Export List option. That's...
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