mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +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() {
|
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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user