Added gateway files

This commit is contained in:
Toastie 2024-09-12 18:45:44 +12:00
parent bffec63180
commit 83efa2c6e8
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 2274 additions and 0 deletions

8
gateway/common.ts Normal file
View file

@ -0,0 +1,8 @@
/**
* https://discord.com/developers/docs/topics/gateway#connecting-gateway-url-query-string-params
*/
export interface GatewayURLQuery {
v: string;
encoding: 'json' | 'etf';
compress?: 'zlib-stream';
}

4
gateway/index.ts Normal file
View file

@ -0,0 +1,4 @@
// This file exports all the types available in the recommended gateway version
// Thereby, things MAY break in the future. Try sticking to imports from a specific version
export * from './v9';

2262
gateway/v9.ts Normal file

File diff suppressed because it is too large Load diff