Method GetFromApiAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetFromApiAsync(CancellationToken)
Fetches the user from the API.
public Task<DiscordUser> GetFromApiAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordUser>
The user with fresh data from the API.