Archived
0
0
Fork 0

feat(types): made gateway intents optional

This commit is contained in:
Daryl Ronningen 2021-07-16 20:30:50 -07:00
parent e3d1dc1eed
commit dfe63a90fe
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -11,7 +11,7 @@ export interface IApiClientOptions {
export interface IClientOptions { export interface IClientOptions {
api?: IApiClientOptions; api?: IApiClientOptions;
presence?: IUpdatePresence; presence?: IUpdatePresence;
ws: IWebSocketClientOptions; ws?: IWebSocketClientOptions;
} }
export interface IDefaultOptions { export interface IDefaultOptions {
@ -71,7 +71,7 @@ export interface IUpdatePresence {
export interface IWebSocketClientOptions { export interface IWebSocketClientOptions {
compression?: boolean; compression?: boolean;
encoding?: 'json'; encoding?: 'json';
intents: number; intents?: number;
largeThreshold?: number; largeThreshold?: number;
url?: string; url?: string;
version?: number; version?: number;