mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Address #700
This commit is contained in:
parent
69f947dfcb
commit
9308d2ead3
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -222,7 +222,8 @@ class RESTMethods {
|
|||
data.avatar = this.rest.client.resolver.resolveBase64(_data.avatar) || user.avatar;
|
||||
if (!user.bot) {
|
||||
data.email = _data.email || user.email;
|
||||
data.new_password = _data.newPassword;
|
||||
data.password = this.rest.client.password;
|
||||
if (_data.new_password) data.new_password = _data.newPassword;
|
||||
}
|
||||
|
||||
this.rest.makeRequest('patch', Constants.Endpoints.me, true, data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue