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