Update Cache.ts

This commit is contained in:
2022-01-27 17:58:56 +07:00
parent 645dcba595
commit 8f35c8e49a
+2 -1
View File
@@ -1,3 +1,4 @@
import { Guild } from "@prisma/client";
import { Snowflake } from "discord-api-types";
import Prisma from "./Prisma";
@@ -31,7 +32,7 @@ class Cache {
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')
return this.cache.Guilds[id];