Table of Contents

Class SingleShardOrchestrator

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

Orchestrates a single "shard".

public sealed class SingleShardOrchestrator : IShardOrchestrator
Inheritance
object
SingleShardOrchestrator
Implements

Constructors

SingleShardOrchestrator(IGatewayClient, DiscordApiClient, IPayloadDecompressor)

Creates a new instance of this type.

Properties

AllShardsConnected

Indicates whether all shards are connected.

ConnectedShardCount

Gets the amount of shards handled by this orchestrator.

TotalShardCount

Gets the total amount of shards connected to this bot.

Methods

BroadcastOutboundEventAsync(byte[])

Sends an outbound event to Discord on all shards.

GetConnectionLatency(ulong)

Gets the connection latency to a specific guild, otherwise known as ping.

IsConnected(ulong)

Indicates whether the bot's connection to the given guild is functional.

ReconnectAsync()

Reconnects all shards associated with this orchestrator.

SendOutboundEventAsync(byte[], ulong)

Sends an outbound event to Discord.

StartAsync(DiscordActivity?, DiscordUserStatus?, DateTimeOffset?)

Starts all shards associated with this orchestrator.

StopAsync()

Stops all shards associated with this orchestrator.