mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Fix Collection.exists (#566)
This commit is contained in:
committed by
Amish Shah
parent
4f130a1a58
commit
60a1ba3088
@@ -114,7 +114,7 @@ class Collection extends Map {
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
exists(key, value) {
|
exists(key, value) {
|
||||||
return Boolean(this.get(key, value));
|
return Boolean(this.find(key, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
_arrayMethod(method, args) {
|
_arrayMethod(method, args) {
|
||||||
|
|||||||
Reference in New Issue
Block a user