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

Mapping of channel -> guild relationships.

Given just the id of a guild channel, there's no way to know what guild it belongs to. This mapping is an ETS table that stores this information.

Link to this section Summary

Functions

Gets a guild_id from a channel_id.

Link to this section Functions

Specs

get_guild(Nostrum.Struct.Channel.id()) ::
  {:ok, Nostrum.Struct.Guild.id()} | {:error, :id_not_found}

Gets a guild_id from a channel_id.