Alchemy.Cache.guild
You're seeing just the function
guild
, go back to Alchemy.Cache module for more information.
Link to this function
guild(guild_id)
Specs
guild(snowflake()) :: {:ok, Alchemy.Guild.t()} | {:error, String.t()}
Fetches a guild from the cache by a given id.
By default, this method needs the guild_id, but keywords can be used to specify a different id, and use the appropiate paths to get the guild using that.
In general there are "smarter" methods, that will deal with getting the id for you; nonetheless, the need for this function sometimes exists.
Keywords
channel
Using this keyword will fetch the information for the guild a channel belongs to.