Table of Contents

Class NullShardOrchestrator

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

Dummy orchestrator that does nothing. Useful for http interaction only clients.

public sealed class NullShardOrchestrator : IShardOrchestrator
Inheritance
NullShardOrchestrator
Implements

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(int)

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

GetConnectionLatency(ulong)

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

GetShardIds()

Get the list of Shard ID's this orcestrator is responsible for.

IsConnected(int)

Indicates whether the bot's shard connection is functional.

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.