Builds the store.
The cache limit of this DataStore
The guild this store belongs to.
The first item in this Cache
The first key of this cache
The first value of this cache
The last item in this cache
The last key of this cache
The last value of this cache
Defines the extensibility of DataStores
Adds a new structure to this DataStore
The data packet to add
Adds a user to the guild, provided you have a valid oauth2 access token for the user with the guilds.join
scope.
The user ID to add.
The data to send for this request.
The additional request options.
A GuildMember instance if the user joined the server, null
if it was already joined.
Returns a shallow clone of this Cache
Returns a new Cache with this and other caches together
Other caches to include in the new cache
Naive equality compare function
The cache to compare this against
Tests if every entry in this cache meets a condition
The function to test the condition
Optional binding for the fn param
Returns a member instance, retrieving from cache if existing.
The user ID to fetch.
Returns up to 1000 members.
Returns a new filtered Cache based on the filter function
Function used to determine what entries are in the new Cache
Optional binding for the fn param
Finds an entry from this Cache
Function used to find what you are looking for
Optional binding for the fn param
Finds a key from this Cache
Function used to find what you are looking for
Optional binding for the fn param
Finds a value from this Cache
Function used to find what you are looking for
Optional binding for the fn param
Maps this Cache to an array (like Array#map())
Function to determine what is mapped to the new Array
Optional binding for the fn param
Reduces this cache into a singularity
The function to determine how this Cache is reduced
The initial value
Optional binding for the fn param
Resolves data into Structures
The data to resolve
Resolves data into ids
The data to resolve
Sets a value to this DataStore taking into account the cache limit.
The key of the value you are setting
The value for the key you are setting
Tests if some entries in this cache meets a condition
The function to test the condition
Optional binding for the fn param
Sorts entries in-place in this Cache
Function to determine how this Cache should be sorted
Sorts entries in a new Cache
Function to determine how the resulting Cache should be sorted
Sweeps entries from this Cache
Function used to determine what entries are swept
Optional binding for the fn param
The JSON representation of this object.
Generated using TypeDoc
The store for guild members.
0.0.1