mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01: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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user