diff --git a/src/util/BitField.js b/src/util/BitField.js index e4fd104a54f1..7cc30afcc4f5 100644 --- a/src/util/BitField.js +++ b/src/util/BitField.js @@ -52,8 +52,7 @@ class BitField { * @returns {string[]} */ missing(bits, ...hasParams) { - if (!Array.isArray(bits)) bits = new this.constructor(bits).toArray(false); - return bits.filter(p => !this.has(p, ...hasParams)); + return new this.constructor(bits).remove(this).toArray(...hasParams); } /**