mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
Merge pull request #1716 from Skillz4Killz/fp-attempt-9001
Fp attempt 9001
This commit is contained in:
@@ -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
@@ -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">;
|
||||
|
||||
Reference in New Issue
Block a user