Table of Contents

Method GetOAuth2ClientAsync

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

GetOAuth2ClientAsync(string)

Gets a REST API client for a given bearer token. Not all features of the API might be available.

public Task<DiscordRestApiClient> GetOAuth2ClientAsync(string token)

Parameters

token string

Returns

Task<DiscordRestApiClient>