mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
Fix collection.find/findAll docs
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -64,7 +64,7 @@ class Collection extends Map {
|
|||||||
* @param {*} value The expected value
|
* @param {*} value The expected value
|
||||||
* @returns {array}
|
* @returns {array}
|
||||||
* @example
|
* @example
|
||||||
* collection.getAll('username', 'Bob');
|
* collection.findAll('username', 'Bob');
|
||||||
*/
|
*/
|
||||||
findAll(key, value) {
|
findAll(key, value) {
|
||||||
if (typeof key !== 'string') throw new TypeError('key must be a string');
|
if (typeof key !== 'string') throw new TypeError('key must be a string');
|
||||||
@@ -82,7 +82,7 @@ class Collection extends Map {
|
|||||||
* @param {*} value The expected value
|
* @param {*} value The expected value
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
* @example
|
* @example
|
||||||
* collection.get('id', '123123...');
|
* collection.find('id', '123123...');
|
||||||
*/
|
*/
|
||||||
find(key, value) {
|
find(key, value) {
|
||||||
if (typeof key !== 'string') throw new TypeError('key must be a string');
|
if (typeof key !== 'string') throw new TypeError('key must be a string');
|
||||||
|
|||||||
Reference in New Issue
Block a user