Table of Contents

Class MultiShardOrchestrator

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

Orchestrates multiple shards within this process.

public sealed class MultiShardOrchestrator : IShardOrchestrator
Inheritance
object
MultiShardOrchestrator
Implements

Constructors

MultiShardOrchestrator(IServiceProvider, IOptions<ShardingOptions>, DiscordApiClient, IPayloadDecompressor)

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 from the specified guild. Pass 0 to send a guild-independent outbound event to shard 0.

StartAsync(DiscordActivity?, DiscordUserStatus?, DateTimeOffset?)

Starts all shards associated with this orchestrator.

StopAsync()

Stops all shards associated with this orchestrator.