Remedy.Cache (Remedy v0.6.6) View Source
Functions for interracting with the cache.
Link to this section Summary
Functions
Fetch a ban from the Cache by user_id & guild_id
Unsafe proxy definition for fetch_ban/2
.
Fetch a channel from the cache.
Unsafe proxy definition for fetch_channel/1
.
Set the initial condition of the bot.
Link to this section Types
Specs
reason() :: String.t()
Specs
snowflake() :: Snowflake.t()
Link to this section Functions
Specs
fetch_ban(snowflake(), snowflake()) :: {:error, reason()} | {:ok, Remedy.Schema.Ban.t()}
Fetch a ban from the Cache by user_id & guild_id
Returns {:ok, %Remedy.Schema.Ban{}
} or {:error, reason}
Unsafe proxy definition for fetch_ban/2
.
Fetch a channel from the cache.
Unsafe proxy definition for fetch_channel/1
.
Set the initial condition of the bot.