File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " detritus-client-socket" ,
3
- "version" : " 0.3.0 " ,
3
+ "version" : " 0.3.1 " ,
4
4
"description" : " A TypeScript NodeJS library to interact with Discord's Gateway" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
7
7
"files" : [
8
8
" lib/**/*"
9
9
],
10
10
"dependencies" : {
11
- "detritus-utils" : " ^0.1.9 " ,
11
+ "detritus-utils" : " ^0.1.10 " ,
12
12
"ws" : " ^7.1.2"
13
13
},
14
14
"devDependencies" : {
15
- "@types/node" : " ^12.7.5 "
15
+ "@types/node" : " ^12.7.11 "
16
16
},
17
17
"peerDependencies" : {
18
18
"erlpack" : " ^0.1.2" ,
Original file line number Diff line number Diff line change 1
1
export const Package = Object . freeze ( {
2
2
URL : 'https://github.com/detritusjs/client-socket' ,
3
- VERSION : '0.3.0 ' ,
3
+ VERSION : '0.3.1 ' ,
4
4
} ) ;
5
5
6
6
function normalize ( object : { [ key : string ] : any } ) {
@@ -165,6 +165,7 @@ export const GatewayOpCodes = Object.freeze({
165
165
STREAM_WATCH : 20 ,
166
166
STREAM_PING : 21 ,
167
167
STREAM_SET_PAUSED : 22 ,
168
+ FLUSH_LFG_SUBSCRIPTIONS : 23 ,
168
169
} ) ;
169
170
170
171
export const GatewayPresenceStatuses = Object . freeze ( {
Original file line number Diff line number Diff line change @@ -710,6 +710,15 @@ export class Socket extends EventEmitter {
710
710
} , callback ) ;
711
711
}
712
712
713
+ flushLfgSubscriptions (
714
+ subscriptions : any ,
715
+ callback ?: Function ,
716
+ ) : void {
717
+ this . send ( GatewayOpCodes . FLUSH_LFG_SUBSCRIPTIONS , {
718
+ subscriptions,
719
+ } , callback ) ;
720
+ }
721
+
713
722
guildStreamCreate (
714
723
guildId : string ,
715
724
channelId : string ,
You can’t perform that action at this time.
0 commit comments