From 8f35c8e49a833a0131e3ae568edc9fac89b28a6a Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 27 Jan 2022 17:58:56 +0700 Subject: [PATCH] Update Cache.ts --- src/providers/Cache.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/Cache.ts b/src/providers/Cache.ts index cb9f94d..80f9bdf 100644 --- a/src/providers/Cache.ts +++ b/src/providers/Cache.ts @@ -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];