change: prettier code

This commit is contained in:
itohatweb
2021-10-28 20:57:21 +00:00
committed by GitHub Action
parent 4003fd1557
commit f14dd45cd1

View File

@@ -123,7 +123,7 @@ type CacheOptions =
export function createBot<C extends CacheOptions = CacheOptions>(
options: CreateBotOptions<C>
): Bot<C extends { isAsync: true } ? AsyncCache : Cache> {
return ({
return {
id: options.botId,
applicationId: options.applicationId || options.botId,
token: `Bot ${options.token}`,
@@ -260,7 +260,7 @@ export function createBot<C extends CacheOptions = CacheOptions>(
// },
// },
// },
} as unknown) as Bot<C extends { isAsync: true } ? AsyncCache : Cache>;
} as unknown as Bot<C extends { isAsync: true } ? AsyncCache : Cache>;
}
export function createEventHandlers(events: Partial<EventHandlers>): EventHandlers {