Add a voice state to the voicestates index
id of the voice state
Bind a guild id to the cache
id of the guild that should be bound to this cache
Bind an object to the cache instance, you can read more on binding on the landing page of the documentation
Object to bind to this cache instance
Bind a user id to the cache
id of the user
Returns a VoiceStateCache that has an id bound to it, which serves as the default argument to get, update and delete
Build a unique key for storing VoiceState data
id of the user
id of the guild
Filter for VoiceStates by providing a filter function which returns true upon success and false otherwise
filter function to use for the filtering
Array of user ids, if omitted the global user index will be used
Find a VoiceState by providing a filter function which returns true upon success and false otherwise
filter function to use for filtering for a state
List of ids that should be used as the scope of the filter
Returns a VoiceState Cache with a bound state or null if no state was found
Loads a VoiceState from the cache via id
discord id of the user
guild id
Returns a VoiceState Cache with a bound user or null if no user was found
Get the number of VoiceStates that are currently cached
Number of VoiceStates currently cached
Get a list of currently indexed VoiceStates, since VoiceStates is a global namespace, this will return ALL VoiceStates that the bot cached currently
Array with a list of ids of users that are indexed
Check if a VoiceState is indexed
id of the user
True if the state is indexed, false otherwise
Remove a VoiceState from the cache
discord id of the user
guild id
Remove a VoiceState from the index
id of the user
Delete the VoiceState index, you should probably not use this function, but I won't stop you.
Delete keys from data if necessary based on RainCache structureDefs options and return the cleaned data
The data to possibly delete object entries from
Update a VoiceState entry in the cache
discord id of the user
guild id
updated data of the VoiceState, it will be merged with the old data
guild id bound to this cache
Create a new VoiceStateCache
This class is automatically instantiated by RainCache
Storage engine to use for this cache
Optional, may be used to bind a user object to the cache
Generated using TypeDoc
Cache responsible for caching users