mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
Webpack build for branch master: c84529c102
This commit is contained in:
parent
3e4d011b48
commit
7b3dce2809
2 changed files with 6 additions and 4 deletions
|
|
@ -11748,7 +11748,7 @@ module.exports = {
|
||||||
/* 41 */
|
/* 41 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const User = __webpack_require__(12);
|
/* WEBPACK VAR INJECTION */(function(Buffer) {const User = __webpack_require__(12);
|
||||||
const Collection = __webpack_require__(3);
|
const Collection = __webpack_require__(3);
|
||||||
const ClientUserSettings = __webpack_require__(42);
|
const ClientUserSettings = __webpack_require__(42);
|
||||||
const Constants = __webpack_require__(0);
|
const Constants = __webpack_require__(0);
|
||||||
|
|
@ -11832,7 +11832,8 @@ class ClientUser extends User {
|
||||||
edit(data, password) {
|
edit(data, password) {
|
||||||
const _data = {};
|
const _data = {};
|
||||||
_data.username = data.username || this.username;
|
_data.username = data.username || this.username;
|
||||||
_data.avatar = this.client.resolver.resolveBase64(data.avatar) || this.avatar;
|
_data.avatar = this.client.resolver.resolveBase64(data.avatar);
|
||||||
|
|
||||||
if (!this.bot) {
|
if (!this.bot) {
|
||||||
_data.email = data.email || this.email;
|
_data.email = data.email || this.email;
|
||||||
_data.password = password;
|
_data.password = password;
|
||||||
|
|
@ -11906,7 +11907,7 @@ class ClientUser extends User {
|
||||||
if (typeof avatar === 'string' && avatar.startsWith('data:')) {
|
if (typeof avatar === 'string' && avatar.startsWith('data:')) {
|
||||||
return this.edit({ avatar });
|
return this.edit({ avatar });
|
||||||
} else {
|
} else {
|
||||||
return this.client.resolver.resolveBuffer(avatar)
|
return this.client.resolver.resolveBuffer(avatar || Buffer.alloc(0))
|
||||||
.then(data => this.edit({ avatar: this.client.resolver.resolveBase64(data) || null }));
|
.then(data => this.edit({ avatar: this.client.resolver.resolveBase64(data) || null }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12087,6 +12088,7 @@ class ClientUser extends User {
|
||||||
|
|
||||||
module.exports = ClientUser;
|
module.exports = ClientUser;
|
||||||
|
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5).Buffer))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 42 */
|
/* 42 */
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue