mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(BaseManager): BaseManager#valueOf should return cache (#3776)
* BaseManager#valueOf should return cache * Update Util#flatten to handle valueOf being a Collection * Update Util.js - typo Co-Authored-By: Amish Shah <amishshah.2k@gmail.com> Co-authored-by: Amish Shah <amishshah.2k@gmail.com>
This commit is contained in:
@@ -72,6 +72,10 @@ class BaseManager {
|
||||
if (typeof idOrInstance === 'string') return idOrInstance;
|
||||
return null;
|
||||
}
|
||||
|
||||
valueOf() {
|
||||
return this.cache;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BaseManager;
|
||||
|
||||
Reference in New Issue
Block a user