mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 23:21:04 +00:00
fix setUsername()
This commit is contained in:
parent
9173ded903
commit
8d5949842c
2 changed files with 2 additions and 2 deletions
|
|
@ -1147,7 +1147,7 @@ var InternalClient = (function () {
|
|||
//def updateDetails
|
||||
|
||||
InternalClient.prototype.updateDetails = function updateDetails(data) {
|
||||
if (!email) {
|
||||
if (!this.email) {
|
||||
throw new Error("Can't use updateDetails because only a token has been used for login!");
|
||||
}
|
||||
return this.apiRequest("patch", _Constants.Endpoints.ME, true, {
|
||||
|
|
|
|||
|
|
@ -969,7 +969,7 @@ export default class InternalClient {
|
|||
|
||||
//def updateDetails
|
||||
updateDetails(data) {
|
||||
if(!email) {
|
||||
if(!this.email) {
|
||||
throw new Error("Can't use updateDetails because only a token has been used for login!");
|
||||
}
|
||||
return this.apiRequest("patch", Endpoints.ME, true, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue