mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
change: prettier code
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user