diff --git a/src/bot.ts b/src/bot.ts index 8c809628b..172e86d9b 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}`, @@ -260,7 +260,7 @@ export function createBot( // }, // }, // }, - } as unknown) as Bot; + } as unknown as Bot; } export function createEventHandlers(events: Partial): EventHandlers {