Nostrum v0.4.0 Nostrum.Cache.Mapping.GuildShard View Source

Mapping of guild -> shard relationships.

Guild servers do not inherently know which shard they came from. This mapping is an ETS table that stores this information.

Link to this section Summary

Functions

Gets the a shard num from a guild_id.

Link to this section Functions

Link to this function

get_shard(guild_id) View Source
get_shard(Guild.id()) :: {:ok, integer()} | {:error, :id_not_found}

Gets the a shard num from a guild_id.