mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Fix Destructuring Errors in Util (#2171)
* Fix Destructuring * Fix another one
This commit is contained in:
parent
7e0e457334
commit
58d85282b4
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ class Util {
|
|||
if (!has(given, key) || given[key] === undefined) {
|
||||
given[key] = def[key];
|
||||
} else if (given[key] === Object(given[key])) {
|
||||
given[key] = this.mergeDefault(def[key], given[key]);
|
||||
given[key] = Util.mergeDefault(def[key], given[key]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ class Util {
|
|||
* @private
|
||||
*/
|
||||
static convertToBuffer(ab) {
|
||||
if (typeof ab === 'string') ab = this.str2ab(ab);
|
||||
if (typeof ab === 'string') ab = Util.str2ab(ab);
|
||||
return Buffer.from(ab);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue