Add ids to the index of a namespace
ids to add
id of the parent object of the index
Bind a channel id to this permission overwrite cache
id of the channel that belongs to the permission overwrite
returns a permission overwrite cache with boundChannel set to the passed channelId
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
Build a unique key for storing the data in the datasource
id of the permission overwrite
id of the channel that belongs to the permission overwrite
Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise
filter function to use for the filtering
id of the channel that belongs to the permission overwrite
Array of permission overwrite ids, if omitted the permission overwrite index will be used
returns an array of bound permission overwrite caches
Find a permission overwrite by providing a filter function which returns true upon success and false otherwise
filter function to use for the filtering
id of the channel that belongs to the permission overwrite
Array of permission overwrite ids, if omitted the permission overwrite index will be used
returns a bound permission overwrite cache
Get a permission overwrite via id
id of the permission overwrite
id of the channel that belongs to the permission overwrite
returns a bound permission overwrite cache or null if nothing was found
Get the number of elements that are within an index
id of the parent object of the index
Get all members from an index
id of the parent object of the index
Check if an id is a member of an index
id to check
id of the parent object of the index
returns true if it is a part of the index, false otherwise
Remove a permission overwrite entry from the cache
id of the permission overwrite
id of the channel that belongs to the permission overwrite
Remove an id from the index
id to be removed
id of the parent object of the index
Delete an index
id of the parent object of the index
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 permission overwrite entry in the cache
id of the permission overwrite
id of the channel that belongs to the permission overwrite
updated permission overwrite data, will be merged with the old data
returns a bound permission overwrite cache
guild id bound to this cache
Create a new PermissionOverwriteCache
This class is automatically instantiated by RainCache
Storage engine to use for this cache
Optional, may be used to bind a permission overwrite object to this cache
Generated using TypeDoc
Cache used for saving overwrites of permissions belonging to channels