mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
scretKey as option on createbot()
This commit is contained in:
+2
-1
@@ -112,7 +112,7 @@ export function createBot(options: CreateBotOptions): Bot {
|
||||
unrepliedInteractions: new Set<bigint>(),
|
||||
fetchAllMembersProcessingRequests: new Map(),
|
||||
},
|
||||
rest: createRestManager({ token: options.token, debug: options.events.debug }),
|
||||
rest: createRestManager({ token: options.token, debug: options.events.debug, secretKey: options.secretKey ?? undefined }),
|
||||
} as Bot;
|
||||
|
||||
bot.helpers = createHelpers(bot, options.helpers ?? {});
|
||||
@@ -399,6 +399,7 @@ export interface CreateBotOptions {
|
||||
token: string;
|
||||
botId: bigint;
|
||||
applicationId?: bigint;
|
||||
secretKey?: string;
|
||||
events: Partial<EventHandlers>;
|
||||
intents: (keyof typeof GatewayIntents)[];
|
||||
botGatewayData?: GetGatewayBot;
|
||||
|
||||
Reference in New Issue
Block a user