Skip to content

How to perform a self-mute after being connected to a voice channel? #1480

Closed Answered by tcortega
tcortega asked this question in Q&A
Discussion options

You must be logged in to vote

Found a way to do it using the client's underlaying websocket and broadcasting the packet manually.

client.ws.broadcast({
  op: GatewayOpCodes.VOICE_STATE_UPDATE, // 4
  d: {
    guild_id: connection.channel.guildId,
    channel_id: connection.channel.id,
    self_mute: true,
    self_deaf: false,
    self_video: false,
  },
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tcortega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant