Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Jun 14, 2021
1 parent 12d8773 commit c3c8fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-rpc",
"version": "3.2.0",
"version": "4.0.0",
"description": "A simple RPC client for Discord",
"keywords": [
"discord",
Expand Down
4 changes: 2 additions & 2 deletions test/rp.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const client = new Client({
transport: 'ipc',
});

client.on('VOICE_CHANNEL_SELECT', ({ channel_id }) => {
client.subscribe('VOICE_STATE_UPDATE', { channel_id });
client.on('VOICE_CHANNEL_SELECT', (args) => {
client.subscribe('VOICE_STATE_UPDATE', { channel_id: args.channel_id });
});

client.on('VOICE_STATE_UPDATE', (args) => {
Expand Down

0 comments on commit c3c8fd4

Please sign in to comment.