diff --git a/src/bot.ts b/src/bot.ts index 97e77f911..66ef93dab 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -123,7 +123,7 @@ type CacheOptions = export function createBot( options: CreateBotOptions ): Bot { - return ({ + return { id: options.botId, applicationId: options.applicationId || options.botId, token: `Bot ${options.token}`, @@ -136,7 +136,7 @@ export function createBot( handlers: createBotGatewayHandlers({}), // @ts-ignore b quiet cache: createCache(options?.cache?.isAsync ?? false, options?.cache?.customTableCreator), - } as unknown) as Bot; + } as unknown as Bot; } export function createEventHandlers(events: Partial): EventHandlers {