Method OAuth2GetGuildAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
OAuth2GetGuildAsync(DiscordOAuth2Client)
Gets the current user's guilds.
Requires a DiscordAccessToken set in AccessToken.
public Task<IReadOnlyList<DiscordGuild>> OAuth2GetGuildAsync(DiscordOAuth2Client oauth2Client)
Parameters
oauth2Client
DiscordOAuth2ClientThe oauth2 client.
Returns
Exceptions
- NullReferenceException
Thrown when AccessToken is not present.