mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +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 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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user