cloudstorm
Advanced tools
Comparing version 0.8.5 to 0.8.6
@@ -93,2 +93,5 @@ import * as discord_api_types_v10 from 'discord-api-types/v10'; | ||
declare class RatelimitBucket { | ||
limit: number; | ||
limitReset: number; | ||
defaultReset?: number | undefined; | ||
fnQueue: Array<{ | ||
@@ -99,6 +102,3 @@ fn: () => unknown; | ||
}>; | ||
limit: number; | ||
remaining: number; | ||
limitReset: number; | ||
defaultReset: number | undefined; | ||
resetTimeout: NodeJS.Timeout | null; | ||
@@ -111,3 +111,3 @@ /** | ||
*/ | ||
constructor(limit?: number, limitReset?: number, defaultReset?: number); | ||
constructor(limit?: number, limitReset?: number, defaultReset?: number | undefined); | ||
/** | ||
@@ -159,6 +159,6 @@ * Queue a function to be executed. | ||
declare class BetterWs extends EventEmitter { | ||
address: string; | ||
options: IClientWSOptions; | ||
encoding: "etf" | "json"; | ||
compress: boolean; | ||
address: string; | ||
options: IClientWSOptions; | ||
wsBucket: RatelimitBucket; | ||
@@ -209,7 +209,9 @@ presenceBucket: RatelimitBucket; | ||
id: number; | ||
client: EventEmitter; | ||
options: Omit<IClientOptions, "snowtransferInstance"> & { | ||
token: string; | ||
endpoint?: string; | ||
client: EventEmitter & { | ||
options: Omit<IClientOptions, "snowtransferInstance"> & { | ||
token: string; | ||
endpoint?: string; | ||
}; | ||
}; | ||
options: DiscordConnector["client"]["options"]; | ||
reconnect: boolean; | ||
@@ -373,3 +375,8 @@ betterWs: BetterWs; | ||
*/ | ||
constructor(id: number, client: Shard["client"]); | ||
constructor(id: number, client: EventEmitter & { | ||
options: Omit<IClientOptions, "snowtransferInstance"> & { | ||
token: string; | ||
endpoint?: string; | ||
}; | ||
}); | ||
/** | ||
@@ -425,3 +432,8 @@ * Time in ms it took for Discord to ackknowledge an OP 1 HEARTBEAT. | ||
*/ | ||
constructor(client: ShardManager["client"]); | ||
constructor(client: events.EventEmitter & { | ||
options: Omit<IClientOptions, "snowtransferInstance"> & { | ||
token: string; | ||
endpoint?: string; | ||
}; | ||
}); | ||
/** | ||
@@ -428,0 +440,0 @@ * Create shard instances and add them to the connection queue. |
{ | ||
"name": "cloudstorm", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "Minimalistic Discord Gateway library", | ||
@@ -17,13 +17,13 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"snowtransfer": "^0.8.5" | ||
"snowtransfer": "^0.8.6" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "20.5.0", | ||
"@typescript-eslint/eslint-plugin": "^6.4.0", | ||
"@typescript-eslint/parser": "^6.4.0", | ||
"eslint": "^8.47.0", | ||
"@types/node": "20.8.3", | ||
"@typescript-eslint/eslint-plugin": "^6.7.4", | ||
"@typescript-eslint/parser": "^6.7.4", | ||
"eslint": "^8.51.0", | ||
"tsup": "^7.2.0", | ||
"typedoc": "^0.24.8", | ||
"typedoc-plugin-mdn-links": "^3.0.3", | ||
"typescript": "^5.1.6" | ||
"typedoc": "^0.25.2", | ||
"typedoc-plugin-mdn-links": "^3.1.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -30,0 +30,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
344242
1262
Updatedsnowtransfer@^0.8.6