Method GetUserAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetUserAsync(ulong, bool)
Gets a user.
public Task<DiscordUser> GetUserAsync(ulong userId, bool fetch = false)
Parameters
Returns
- Task<DiscordUser>
The requested user.
Exceptions
- NotFoundException
Thrown when the user does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.