Send guild_id on voice destroy for bot accounts to work

(thanks qeled for supplying this fix, as per in the node_discord-js discord chat channel :D)
This commit is contained in:
Nicholas Tay
2016-03-28 19:05:59 +11:00
parent 18dd59fe42
commit 77346e3415
2 changed files with 2 additions and 2 deletions

View File

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

View File

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