fix(core): gateway config is Partial<>

This commit is contained in:
socram03 2023-06-06 14:34:47 +00:00
parent 5cd1f56788
commit 2c690771ee

View File

@ -1,6 +1,6 @@
import type { BiscuitRESTOptions, CDNRoutes, Routes } from '@biscuitland/rest'; import type { BiscuitRESTOptions, CDNRoutes, Routes } from '@biscuitland/rest';
import { CDN, BiscuitREST, Router } from '@biscuitland/rest'; import { CDN, BiscuitREST, Router } from '@biscuitland/rest';
import { When } from '@biscuitland/common'; import { Identify, When } from '@biscuitland/common';
import EventEmitter2 from 'eventemitter2'; import EventEmitter2 from 'eventemitter2';
import { MainManager, getBotIdFromToken } from '.'; import { MainManager, getBotIdFromToken } from '.';
import { GatewayManager, CreateGatewayManagerOptions, GatewayEvents } from '@biscuitland/ws'; import { GatewayManager, CreateGatewayManagerOptions, GatewayEvents } from '@biscuitland/ws';
@ -112,5 +112,5 @@ export interface BiscuitOptions {
intents: number | GatewayIntentBits; intents: number | GatewayIntentBits;
rest?: BiscuitREST; rest?: BiscuitREST;
defaultRestOptions?: Partial<BiscuitRESTOptions>; defaultRestOptions?: Partial<BiscuitRESTOptions>;
defaultGatewayOptions?: Omit<CreateGatewayManagerOptions, 'token' | 'intents'>; defaultGatewayOptions?: Identify<Partial<Omit<CreateGatewayManagerOptions, 'token' | 'intents'>>>;
} }