View Source Nostrum.Cache.Mapping.GuildShard (Nostrum v0.6.1)

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

Specs

get_shard(Nostrum.Struct.Guild.id()) ::
  {:ok, integer()} | {:error, :id_not_found}

Gets the a shard num from a guild_id.