mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
15 lines
393 B
TypeScript
15 lines
393 B
TypeScript
import { cache } from "../utils/cache.ts";
|
|
import { Guild } from "../structures/guild.ts";
|
|
|
|
export const handleInternalGuildCreate = (guild: Guild) => {
|
|
cache.guilds.set(guild.id, guild);
|
|
};
|
|
|
|
export const handleInternalGuildUpdate = (guild: Guild) => {
|
|
cache.guilds.set(guild.id, guild);
|
|
};
|
|
|
|
export const handleInternalGuildDelete = (guild: Guild) => {
|
|
cache.guilds.delete(guild.id);
|
|
};
|