ETS-based cache for Discord guild members.
Stores guild-specific member data (nickname, roles, join date, etc.)
separately from the global user cache. Keyed by {guild_id, user_id}.
Automatically populated from GUILD_CREATE, GUILD_MEMBER_ADD/UPDATE/REMOVE, and VOICE_STATE_UPDATE events (which include a member object).
Summary
Functions
Returns a specification to start this module under a supervisor.
Returns the total number of cached members.
Returns the number of members for a guild.
Creates or replaces a member in the cache.
Removes a member from the cache.
Removes all members for a guild.
Gets all members for a guild.
Gets a member in a guild.
Updates a member in the cache (merges fields).
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec count() :: non_neg_integer()
Returns the total number of cached members.
@spec count_for_guild(String.t() | integer()) :: non_neg_integer()
Returns the number of members for a guild.
Creates or replaces a member in the cache.
Removes a member from the cache.
Removes all members for a guild.
Gets all members for a guild.
Gets a member in a guild.
Updates a member in the cache (merges fields).