mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
import type { DiscordUser } from "./deps.ts";
|
|
import type { SessionCache } from "./mod.ts";
|
|
import { User } from "./deps.ts";
|
|
|
|
export type CachedUser = User;
|
|
|
|
export function userBootstrapper(cache: SessionCache, user: DiscordUser) {
|
|
cache.users.set(user.id, new User(cache.session, user));
|
|
}
|