mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
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:
parent
18dd59fe42
commit
77346e3415
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue