mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Don't mind me
This commit is contained in:
@@ -197,7 +197,7 @@ class Collection extends Map {
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
exists(prop, value) {
|
exists(prop, value) {
|
||||||
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .get(id).');
|
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .has(id).');
|
||||||
return Boolean(this.find(prop, value));
|
return Boolean(this.find(prop, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user