View Source Nostrum.Cache.PresenceCache.NoOp (Nostrum v0.6.1)

A cache module that does not cache anything.

Useful for bots that do not need presence caching.

Link to this section Summary

Functions

Do not bulk create multiple presences in the cache.

Returns a specification to start this module under a supervisor.

Do not add the given presence data to the cache.

Start up the cache supervisor.

Start the supervisor.

Return the presence update for consumers.

Link to this section Functions

Link to this function

bulk_create(guild_id, presences)

View Source

Specs

bulk_create(Nostrum.Struct.Guild.id(), [map()]) :: :ok

Do not bulk create multiple presences in the cache.

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

create(map()) :: :ok

Do not add the given presence data to the cache.

Start up the cache supervisor.

Start the supervisor.

Specs

update(map()) :: {Nostrum.Struct.Guild.id(), nil | map(), map()} | :noop

Return the presence update for consumers.