Class DiscordRestApiClientFactory
- Namespace
- DSharpPlus.Clients
- Assembly
- DSharpPlus.dll
Provides a way to get access to either the current application's REST client or OAuth2-based REST clients.
public sealed class DiscordRestApiClientFactory
- Inheritance
-
objectDiscordRestApiClientFactory
Constructors
Methods
- GetCurrentApplicationClient()
Gets the REST API client for the current bot.
- GetOAuth2ClientAsync(string)
Gets a REST API client for a given bearer token. Not all features of the API might be available.