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.

DownloadUsersAsync() "doesn't work"

See original GitHub issue

This is an FYI issue for everyone with these issues.

You need MEMBERS intent for DownloadUsersAsync() to work. (If you ask for presences with this operation, presence intent is also required.) Enable it on your bot page: https://discord.com/developers/applications

It Hangs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
quinchscommented, Feb 3, 2022

With Discord.Net >3.0 you need to specify the intent in your clients config, its also best practice to not download users on the gateway thread incase the call lasts long.

1reaction
SubZero0commented, Nov 17, 2020

Glad to help.

@RheaAyase would you mind linking to my comment instead since it should contain most of the causes and solutions about it? Or add that info to the first post.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DownloadUsersAsync() "doesn't work" -
This is an FYI issue for everyone with these issues. You need MEMBERS intent for DownloadUsersAsync() to work. (If you ask for presences ......
Read more >
Class SocketGuild
A task that represents the asynchronous removal operation. | Improve this Doc View Source. DownloadUsersAsync(). Declaration.
Read more >
Guild Member Intent Missing, even though Guildmember ...
It was working fine until a certain point, when the users couldn't be downloaded anymore. I added All the Intents. The Exception and...
Read more >
Commands which download guild users don't work
To address what kotz said: Incorrect. Some guilds work, some don't. It's a discord.net issue. The DownloadUsersAsync() never returns in some ...
Read more >
My discord bot don't work out of my test server. : r/discordbots
I created a Discord bot to perform simple tasks. I worked on it for several days, and in the end, it was functioning...
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