Table of Contents

Class GuildShard

Namespace
Nyra.Abstractions
Assembly
Nyra.dll

Discord's routing of a guild to the shard that serves it.

public static class GuildShard
Inheritance
GuildShard
Inherited Members

Methods

IdFor(ulong, int)

Returns the id of the shard that serves a guild.

public static int IdFor(ulong guildId, int shardCount)

Parameters

guildId ulong

The id of the guild.

shardCount int

The total number of shards, must be positive.

Returns

int

The shard id, from 0 to shardCount - 1.

Exceptions

ArgumentOutOfRangeException

shardCount is not positive.