mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +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
|
* @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');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue