Constructor Shard
| Improve this Doc View SourceShard(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 |