mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
Fix collection.find/findAll docs
This commit is contained in:
parent
28169c0f55
commit
7b870d13de
2 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -64,7 +64,7 @@ class Collection extends Map {
|
|||
* @param {*} value The expected value
|
||||
* @returns {array}
|
||||
* @example
|
||||
* collection.getAll('username', 'Bob');
|
||||
* collection.findAll('username', 'Bob');
|
||||
*/
|
||||
findAll(key, value) {
|
||||
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
|
||||
* @returns {*}
|
||||
* @example
|
||||
* collection.get('id', '123123...');
|
||||
* collection.find('id', '123123...');
|
||||
*/
|
||||
find(key, value) {
|
||||
if (typeof key !== 'string') throw new TypeError('key must be a string');
|
||||
|
|
|
|||
Loading…
Reference in a new issue