Table of Contents

Class BaseDiscordClient

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Represents a common base for various Discord client implementations.

public abstract class BaseDiscordClient
Inheritance
BaseDiscordClient
Derived

Properties

ApiClient
Configuration
CurrentApplication

Gets the current application.

CurrentUser

Gets the current user.

Guilds

Gets the cached guilds for this client.

InternalVoiceRegions

Gets the list of available voice regions. This property is meant as a way to modify VoiceRegions.

Logger

Gets the instance of the logger for this client.

UserCache

Gets the cached users for this client.

VersionString

Gets the string representing the version of D#+.

VoiceRegions

Gets the list of available voice regions. Note that this property will not contain VIP voice regions.

Methods

Dispose()

Disposes this client.

GetCurrentApplicationAsync()

Gets the current API application.

GetGatewayInfoAsync(string)

Gets the current gateway info for the provided token.

If no value is provided, the configuration value will be used instead.

GetRequestMetrics(bool)

Gets the request metrics, optionally since the last time they were checked.

InitializeAsync()

Initializes this client. This method fetches information about current user, application, and voice regions.

ListVoiceRegionsAsync()

Gets a list of regions