DiscordClient
The base class that implements the various properties, methods, and events that developers can use to interact with the Discord API.
Properties
eventManager
DiscordClient.eventManager :: Objects.EventManager
discordGateway
DiscordClient.discordGateway :: Objects.DiscordGateway
onEvent
discordSettings
DiscordClient.discordSettings :: SettingsBuilder
discordCache
DiscordClient.discordCache :: DiscordCache
reporter
DiscordClient.reporter :: Vendor.Reporter
websocketUrl
DiscordClient.websocketUrl :: string
shardCount
DiscordClient.shardCount :: number
maxConcurrency
DiscordClient.maxConcurrency :: number
discordShards
discordUser
DiscordClient.discordUser :: Objects.DiscordUser?
discordApplication
DiscordClient.discordApplication :: Objects.discordApplication
discordUser
DiscordClient.discordUser :: DiscordUser
discordApplication
DiscordClient.discordApplication :: DiscordApplication
Methods
connectAsync
DiscordClient : connectAsync () -> Vendor.Future
Connects the current DiscordClient to the Discord API.
fetchGuildAsync
Fetches a guild by its ID.
fetchChannelAsync
Fetches a channel by its ID.
fetchDMChannelAsync
DiscordClient : fetchDMChannelAsync () -> Vendor.Future<Objects.DiscordChannel>
recipientId: string
Fetches a DM channel between a user and the client.
updatePresenceAsync
DiscordClient : updatePresenceAsync () -> Vendor.Future<boolean>
discordPresence: Builders.PresenceBuilder
Updates the client’s presence.
createGuildAsync
DiscordClient : createGuildAsync () -> Vendor.Future<DiscordGuild>
guildBuilder: Builders.GuildBuilder
Creates a Guild, owned by the application.
setVerbose
DiscordClient : setVerbose () -> ()
verbose: boolean
Sets the verbosity level for logging.
Functions
new
DiscordClient . new () -> ()
discordSettings: Builders.SettingsBuilder
Constructor function for the Discord Client, used to instantiate a Discord Client object.