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:
Ryan Munro
2019-09-23 07:50:41 +10:00
committed by Crawl
parent d05334fd3c
commit 60f89bd96f
2 changed files with 8 additions and 0 deletions

View File

@@ -105,6 +105,10 @@ class GuildEmojiRoleStore extends Collection {
valueOf() {
return this._filtered;
}
static get [Symbol.species]() {
return Collection;
}
}
Util.mixin(GuildEmojiRoleStore, ['set']);

View File

@@ -154,6 +154,10 @@ class GuildMemberRoleStore extends Collection {
valueOf() {
return this._filtered;
}
static get [Symbol.species]() {
return Collection;
}
}
Util.mixin(GuildMemberRoleStore, ['set']);