mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(stores): Add symbol.species for not-actual-stores (#3477)
* fix(stores): Add symbol.species for not-actual-stores * Linting fixes
This commit is contained in:
@@ -105,6 +105,10 @@ class GuildEmojiRoleStore extends Collection {
|
||||
valueOf() {
|
||||
return this._filtered;
|
||||
}
|
||||
|
||||
static get [Symbol.species]() {
|
||||
return Collection;
|
||||
}
|
||||
}
|
||||
|
||||
Util.mixin(GuildEmojiRoleStore, ['set']);
|
||||
|
||||
@@ -154,6 +154,10 @@ class GuildMemberRoleStore extends Collection {
|
||||
valueOf() {
|
||||
return this._filtered;
|
||||
}
|
||||
|
||||
static get [Symbol.species]() {
|
||||
return Collection;
|
||||
}
|
||||
}
|
||||
|
||||
Util.mixin(GuildMemberRoleStore, ['set']);
|
||||
|
||||
Reference in New Issue
Block a user