mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
fix(BitField): ensure missing returns an array of strings (#5795)
This commit is contained in:
@@ -52,8 +52,7 @@ class BitField {
|
|||||||
* @returns {string[]}
|
* @returns {string[]}
|
||||||
*/
|
*/
|
||||||
missing(bits, ...hasParams) {
|
missing(bits, ...hasParams) {
|
||||||
if (!Array.isArray(bits)) bits = new this.constructor(bits).toArray(false);
|
return new this.constructor(bits).remove(this).toArray(...hasParams);
|
||||||
return bits.filter(p => !this.has(p, ...hasParams));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user