Merge pull request #237 from nicholastay/patch-1

Fixes for bot accounts \o/
This commit is contained in:
abalabahaha
2016-03-28 01:13:24 -07:00
4 changed files with 4 additions and 4 deletions

View File

@@ -1241,7 +1241,7 @@ var InternalClient = (function () {
//def updateDetails
InternalClient.prototype.updateDetails = function updateDetails(data) {
if (!this.bot && !(this.email || data.email)) throw new Error("Must provide email since a token was used to login");
if (!this.user.bot && !(this.email || data.email)) throw new Error("Must provide email since a token was used to login");
var options = {
avatar: this.resolver.resolveToBase64(data.avatar) || this.user.avatar,

View File

@@ -99,7 +99,7 @@ var VoiceConnection = (function (_EventEmitter) {
this.client.internal.sendWS({
op: 4,
d: {
guild_id: null,
guild_id: this.server.id,
channel_id: null,
self_mute: true,
self_deaf: false

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 = {

View File

@@ -62,7 +62,7 @@ export default class VoiceConnection extends EventEmitter {
{
op : 4,
d : {
guild_id : null,
guild_id : this.server.id,
channel_id : null,
self_mute : true,
self_deaf : false