Fix bot detection on updateDetails

This commit is contained in:
Nicholas Tay
2016-03-28 19:04:44 +11:00
parent 74c06f7a69
commit 18dd59fe42
2 changed files with 2 additions and 2 deletions

View File

@@ -1013,7 +1013,7 @@ export default class InternalClient {
//def updateDetails
updateDetails(data) {
if (!this.bot && !(this.email || data.email))
if (!this.user.bot && !(this.email || data.email))
throw new Error("Must provide email since a token was used to login");
var options = {