Table of Contents

Method GetFromApiAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetFromApiAsync(CancellationToken)

Fetches the user from the API.

public Task<DiscordUser> GetFromApiAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordUser>

The user with fresh data from the API.