Skip to content

Commit b687477

Browse files
committed
update: library version
This commit updates the version of the library.
1 parent 98cb70f commit b687477

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ client.ws.on('VOICE_SERVER_UPDATE', (data) => {
5555
endpoint: buffer.endpoint
5656
})
5757

58+
// Stream must end with a 0 (as Buffer)
5859
connection.connect(() => connection.play(stream))
5960
}
6061
})

docs/Connection/play.md

+4
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ Nothing.
3333

3434
- Initial implementation
3535

36+
### 2.0.0
37+
38+
- Requires the stream to end with 0 (as Buffer) to stop playing.
39+
3640
</details>

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class Connection extends EventEmitter {
124124

125125
this.ws = new WebSocket(`wss://${this.voiceServer.endpoint}/?v=4`, {
126126
headers: {
127-
'User-Agent': 'DiscordBot (https://github.com/PerformanC/voice, 1.0.5)'
127+
'User-Agent': 'DiscordBot (https://github.com/PerformanC/voice, 2.0.0)'
128128
}
129129
})
130130

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@performanc/voice",
3-
"version": "1.0.5",
3+
"version": "2.0.0",
44
"description": "Performant Discord voice API client for ES6 Node.js",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)