Merge pull request #1716 from Skillz4Killz/fp-attempt-9001

Fp attempt 9001
This commit is contained in:
Skillz4Killz
2021-11-06 10:16:25 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -6,3 +6,4 @@ export * from "./src/transformers/mod.ts";
export * from "./src/types/mod.ts";
export * from "./src/util/mod.ts";
export * from "./src/ws/mod.ts";
export * from "./src/cache.ts";
+2 -2
View File
@@ -128,7 +128,7 @@ export function createBot<C extends CacheOptions = CacheOptions>(
id: options.botId,
applicationId: options.applicationId || options.botId,
token: `Bot ${options.token}`,
events: options.events,
events: createEventHandlers(options.events),
intents: options.intents.reduce((bits, next) => (bits |= DiscordGatewayIntents[next]), 0),
botGatewayData: options.botGatewayData,
isReady: false,
@@ -446,7 +446,7 @@ export interface CreateBotOptions<C extends CacheOptions = CacheOptions> {
token: string;
botId: bigint;
applicationId?: bigint;
events: EventHandlers;
events: Partial<EventHandlers>;
intents: (keyof typeof DiscordGatewayIntents)[];
botGatewayData?: GetGatewayBot;
rest?: Omit<CreateRestManagerOptions, "token">;