Skip to content

Commit 4495cdd

Browse files
committed
version bump
1 parent 7f0c2ed commit 4495cdd

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "detritus-client-socket",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A TypeScript NodeJS library to interact with Discord's Gateway",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
77
"files": [
88
"lib/**/*"
99
],
1010
"dependencies": {
11-
"detritus-utils": "^0.1.9",
11+
"detritus-utils": "^0.1.10",
1212
"ws": "^7.1.2"
1313
},
1414
"devDependencies": {
15-
"@types/node": "^12.7.5"
15+
"@types/node": "^12.7.11"
1616
},
1717
"peerDependencies": {
1818
"erlpack": "^0.1.2",

src/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const Package = Object.freeze({
22
URL: 'https://github.com/detritusjs/client-socket',
3-
VERSION: '0.3.0',
3+
VERSION: '0.3.1',
44
});
55

66
function normalize(object: {[key: string]: any}) {
@@ -165,6 +165,7 @@ export const GatewayOpCodes = Object.freeze({
165165
STREAM_WATCH: 20,
166166
STREAM_PING: 21,
167167
STREAM_SET_PAUSED: 22,
168+
FLUSH_LFG_SUBSCRIPTIONS: 23,
168169
});
169170

170171
export const GatewayPresenceStatuses = Object.freeze({

src/gateway.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,15 @@ export class Socket extends EventEmitter {
710710
}, callback);
711711
}
712712

713+
flushLfgSubscriptions(
714+
subscriptions: any,
715+
callback?: Function,
716+
): void {
717+
this.send(GatewayOpCodes.FLUSH_LFG_SUBSCRIPTIONS, {
718+
subscriptions,
719+
}, callback);
720+
}
721+
713722
guildStreamCreate(
714723
guildId: string,
715724
channelId: string,

0 commit comments

Comments
 (0)