mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
Update src/bot.ts
This commit is contained in:
13
src/bot.ts
13
src/bot.ts
@@ -29,7 +29,18 @@ export const identifyPayload: DiscordIdentify = {
|
||||
intents: 0,
|
||||
shard: [0, 0],
|
||||
};
|
||||
|
||||
/** deprecated Use "DiscordIdentify" instead */
|
||||
export interface IdentifyPayload {
|
||||
token: string;
|
||||
compress: boolean;
|
||||
properties: {
|
||||
$os: string;
|
||||
$browser: string;
|
||||
$device: string;
|
||||
};
|
||||
intents: number;
|
||||
shard: [number, number];
|
||||
}
|
||||
export async function startBot(config: BotConfig) {
|
||||
if (config.eventHandlers) eventHandlers = config.eventHandlers;
|
||||
authorization = `Bot ${config.token}`;
|
||||
|
||||
Reference in New Issue
Block a user