mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00: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:
parent
d05334fd3c
commit
60f89bd96f
2 changed files with 8 additions and 0 deletions
|
|
@ -105,6 +105,10 @@ class GuildEmojiRoleStore extends Collection {
|
||||||
valueOf() {
|
valueOf() {
|
||||||
return this._filtered;
|
return this._filtered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static get [Symbol.species]() {
|
||||||
|
return Collection;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Util.mixin(GuildEmojiRoleStore, ['set']);
|
Util.mixin(GuildEmojiRoleStore, ['set']);
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,10 @@ class GuildMemberRoleStore extends Collection {
|
||||||
valueOf() {
|
valueOf() {
|
||||||
return this._filtered;
|
return this._filtered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static get [Symbol.species]() {
|
||||||
|
return Collection;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Util.mixin(GuildMemberRoleStore, ['set']);
|
Util.mixin(GuildMemberRoleStore, ['set']);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue