Nostrum v0.4.1 Nostrum.Cache.Mapping.ChannelGuild View Source

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

Link to this function

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

Gets a guild_id from a channel_id.