Table of Contents

Class BaseDiscordClient

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

Represents a common base for various Discord Client implementations.

public abstract class BaseDiscordClient : IDisposable
Inheritance
BaseDiscordClient
Implements
Derived
Inherited Members

Constructors

BaseDiscordClient(DiscordConfiguration)

Initializes this Discord API client.

Properties

ApiClient

Gets the api client.

BotLibrary

Gets the bot library name.

Configuration

Gets the 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.

RestClient

Exposes a Http Client for custom operations.

UserCache

Gets the cached users for this client.

VersionString

Gets the string representing the version of bot lib.

VoiceRegions

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

Methods

Dispose()

Disposes this client.

EnableUserAppsAsync()

Enables user app functionality.

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.

InitializeAsync()

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

ListVoiceRegionsAsync()

Gets a list of voice regions.

UpdateCurrentApplicationInfoAsync(Optional<string?>, Optional<string?>, Optional<string?>, Optional<string?>, Optional<List<string>?>, Optional<Stream?>, Optional<Stream?>, Optional<ApplicationFlags>, Optional<DiscordApplicationInstallParams?>)

Updates the current API application.

UpdateCurrentApplicationInfoAsync(Optional<string?>, Optional<string?>, Optional<string?>, Optional<string?>, Optional<List<string>?>, Optional<Stream?>, Optional<Stream?>, Optional<ApplicationFlags>, Optional<DiscordIntegrationTypesConfig?>)

Updates the current API application.