Readonly[toThe initial value of Object.prototype.constructor is the standard built-in Object constructor.
ID of the category.
ReadonlysizeStatic Readonly[species]Identical to Array.at(). Returns the item at a given index, allowing for positive and negative integers. Negative integers count back from the last item in the collection.
The index of the element to obtain
true if an element in the Map existed and has been removed, or false if the element does not exist.
Identical to Map.forEach(), but returns the collection instead of undefined.
Identical to Map.forEach(), but returns the collection instead of undefined.
Checks if this collection shares identical items with another. This is different to checking for equality using equal-signs, because the collections may be different objects, but contain the same data.
Whether the collections have identical contents
Checks if all items passes a test. Identical in behavior to Array.every().
Checks if all items passes a test. Identical in behavior to Array.every().
Checks if all items passes a test. Identical in behavior to Array.every().
Checks if all items passes a test. Identical in behavior to Array.every().
Checks if all items passes a test. Identical in behavior to Array.every().
Checks if all items passes a test. Identical in behavior to Array.every().
Identical to Array.filter(), but returns a Collection instead of an Array.
Identical to Array.filter(), but returns a Collection instead of an Array.
Identical to Array.filter(), but returns a Collection instead of an Array.
Identical to Array.filter(), but returns a Collection instead of an Array.
Identical to Array.filter(), but returns a Collection instead of an Array.
Identical to Array.filter(), but returns a Collection instead of an Array.
Searches for a single item where the given function returns a truthy value. This behaves like
Array.find().
All collections used in Discord.js are mapped using their id property, and if you want to find by id you
should use the get method. See
MDN for details.
Searches for a single item where the given function returns a truthy value. This behaves like
Array.find().
All collections used in Discord.js are mapped using their id property, and if you want to find by id you
should use the get method. See
MDN for details.
Searches for a single item where the given function returns a truthy value. This behaves like
Array.find().
All collections used in Discord.js are mapped using their id property, and if you want to find by id you
should use the get method. See
MDN for details.
Searches for a single item where the given function returns a truthy value. This behaves like
Array.find().
All collections used in Discord.js are mapped using their id property, and if you want to find by id you
should use the get method. See
MDN for details.
Searches for the key of a single item where the given function returns a truthy value. This behaves like Array.findIndex(), but returns the key rather than the positional index.
Searches for the key of a single item where the given function returns a truthy value. This behaves like Array.findIndex(), but returns the key rather than the positional index.
Searches for the key of a single item where the given function returns a truthy value. This behaves like Array.findIndex(), but returns the key rather than the positional index.
Searches for the key of a single item where the given function returns a truthy value. This behaves like Array.findIndex(), but returns the key rather than the positional index.
Searches for a last item where the given function returns a truthy value. This behaves like Array.findLast().
Searches for a last item where the given function returns a truthy value. This behaves like Array.findLast().
Searches for a last item where the given function returns a truthy value. This behaves like Array.findLast().
Searches for a last item where the given function returns a truthy value. This behaves like Array.findLast().
Searches for the key of a last item where the given function returns a truthy value. This behaves like Array.findLastIndex(), but returns the key rather than the positional index.
Searches for the key of a last item where the given function returns a truthy value. This behaves like Array.findLastIndex(), but returns the key rather than the positional index.
Searches for the key of a last item where the given function returns a truthy value. This behaves like Array.findLastIndex(), but returns the key rather than the positional index.
Searches for the key of a last item where the given function returns a truthy value. This behaves like Array.findLastIndex(), but returns the key rather than the positional index.
Obtains the first value(s) in this collection.
A single value if no amount is provided or an array of values, starting from the end if amount is negative
Obtains the first value(s) in this collection.
Amount of values to obtain from the beginning
A single value if no amount is provided or an array of values, starting from the end if amount is negative
Obtains the first key(s) in this collection.
A single key if no amount is provided or an array of keys, starting from the end if amount is negative
Obtains the first key(s) in this collection.
Amount of keys to obtain from the beginning
A single key if no amount is provided or an array of keys, starting from the end if amount is negative
Maps each item into a Collection, then joins the results into a single Collection. Identical in behavior to Array.flatMap().
Maps each item into a Collection, then joins the results into a single Collection. Identical in behavior to Array.flatMap().
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
boolean indicating whether an element with the specified key exists or not.
Checks if all of the elements exist in the collection.
The keys of the elements to check for
true if all of the elements exist, false if at least one does not exist.
Checks if any of the elements exist in the collection.
The keys of the elements to check for
true if any of the elements exist, false if none exist.
Identical to Array.at(). Returns the key at a given index, allowing for positive and negative integers. Negative integers count back from the last item in the collection.
The index of the key to obtain
Returns an iterable of keys in the map
Obtains the last value(s) in this collection.
A single value if no amount is provided or an array of values, starting from the start if amount is negative
Obtains the last value(s) in this collection.
Amount of values to obtain from the end
A single value if no amount is provided or an array of values, starting from the start if amount is negative
Obtains the last key(s) in this collection.
A single key if no amount is provided or an array of keys, starting from the start if amount is negative
Obtains the last key(s) in this collection.
Amount of keys to obtain from the end
A single key if no amount is provided or an array of keys, starting from the start if amount is negative
Maps each item to another value into an array. Identical in behavior to Array.map().
Maps each item to another value into an array. Identical in behavior to Array.map().
Maps each item to another value into a collection. Identical in behavior to Array.map().
Maps each item to another value into a collection. Identical in behavior to Array.map().
Merges two Collections together into a new Collection.
The other Collection to merge with
Function getting the result if the entry only exists in this Collection
Function getting the result if the entry only exists in the other Collection
Function getting the result if the entry exists in both Collections
Obtains unique random value(s) from this collection.
A single value if no amount is provided or an array of values
Obtains unique random value(s) from this collection.
Amount of values to obtain randomly
A single value if no amount is provided or an array of values
Applies a function to produce a single value. Identical in behavior to Array.reduce().
Applies a function to produce a single value. Identical in behavior to Array.reduce().
Function used to reduce, taking four arguments; accumulator, currentValue, currentKey,
and collection
Starting value for the accumulator
Applies a function to produce a single value. Identical in behavior to Array.reduceRight().
Applies a function to produce a single value. Identical in behavior to Array.reduceRight().
Function used to reduce, taking four arguments; accumulator, value, key, and collection
Starting value for the accumulator
Calls reload() on all items in this category.
Calls remove() on all items in this category.
Identical to Array.reverse() but returns a Collection instead of an Array.
Checks if there exists an item that passes a test. Identical in behavior to Array.some().
Checks if there exists an item that passes a test. Identical in behavior to Array.some().
The sort method sorts the items of a collection in place and returns it. The sort is not necessarily stable in Node 10 or older. The default sort order is according to string Unicode code points.
Returns a new collection containing only the items where the keys are present in either collection, but not both.
The other Collection to filter against
Identical to Array.toReversed() but returns a Collection instead of an Array.
Returns the ID.
Returns a new collection containing the items where the key is present in either of the collections.
The other Collection to filter against
Returns an iterable of values in the map
Staticcombine
A group of modules.