Remedy.Cache (Remedy v0.6.6) View Source

Functions for interracting with the cache.

Link to this section Summary

Link to this section Types

Specs

reason() :: String.t()

Specs

snowflake() :: Snowflake.t()

Link to this section Functions

Link to this function

create_presence(presence)

View Source
Link to this function

delete_presence(presence)

View Source
Link to this function

fetch_ban(user_id, guild_id)

View Source

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}

Link to this function

fetch_ban!(user_id, guild_id)

View Source

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 function

remove_message_reactions(message_id)

View Source
Link to this function

update_bot(updated_state)

View Source
Link to this function

update_message(id, updated_message)

View Source
Link to this function

update_presence(presence)

View Source