Discore
Show / Hide Table of Contents

Constructor Shard

| Improve this Doc View Source

Shard(string, int, int)

Creates a new Discord WebSocket shard.

Declaration
public Shard(string botToken, int shardId, int totalShards)
Parameters
Type Name Description
string botToken

The Discord bot token to authenticate with.

int shardId

The ID of the shard or zero if this is the only shard.

int totalShards

The total number of shards for the bot or one if there is only one shard.

Exceptions
Type Condition
ArgumentNullException

Thrown if botToken is null.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX