Table of Contents

Method ConfigureSharding

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

ConfigureSharding(Action<ShardingOptions>)

Configures the sharding attempted by DSharpPlus. Throws if the builder was not set up for sharding.

public DiscordClientBuilder ConfigureSharding(Action<ShardingOptions> configure)

Parameters

configure Action<ShardingOptions>

A configuration delegate for sharding.

Returns

DiscordClientBuilder

The current instance for chaining.