docs: fix

This commit is contained in:
Elysia
2024-07-24 19:32:22 +07:00
parent 62855ab34a
commit dcd9a72971
2 changed files with 12 additions and 1 deletions

View File

@@ -687,6 +687,17 @@ class VoiceConnection extends EventEmitter {
}
}
/**
* Represents a connection to a guild's voice server.
* ```js
* // Obtained using:
* client.voice.joinChannel(channel)
* .then(connection => connection.createStreamConnection())
* .then(connection => {
*
* });
* @extends {VoiceConnection}
*/
class StreamConnection extends VoiceConnection {
#requestDisconnect = false;
constructor(voiceManager, channel, voiceConnection) {