mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-14 11:19:24 +00:00
Update Cache.ts
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { Guild } from "@prisma/client";
|
||||||
import { Snowflake } from "discord-api-types";
|
import { Snowflake } from "discord-api-types";
|
||||||
import Prisma from "./Prisma";
|
import Prisma from "./Prisma";
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ class Cache {
|
|||||||
this.cache.Guilds[id] = data;
|
this.cache.Guilds[id] = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getGuild(id: string) {
|
public async getGuild(id: string): Promise<(Guild | undefined)> {
|
||||||
if(typeof this.cache.Guilds[id] !== 'undefined')
|
if(typeof this.cache.Guilds[id] !== 'undefined')
|
||||||
return this.cache.Guilds[id];
|
return this.cache.Guilds[id];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user