mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix(Collection): use Symbol.species for creating derived collections (#2715)
This commit is contained in:
@@ -46,6 +46,10 @@ class DataStore extends Collection {
|
||||
if (typeof idOrInstance === 'string') return idOrInstance;
|
||||
return null;
|
||||
}
|
||||
|
||||
static get [Symbol.species]() {
|
||||
return Collection;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataStore;
|
||||
|
||||
Reference in New Issue
Block a user