Add user data caching

This commit is contained in:
2022-06-06 20:11:07 +07:00
parent aa268b584d
commit 22f711dc80
5 changed files with 98 additions and 25 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { sendHybridInteractionMessageResponse, makeInfoEmbed } from '../utils/Di
const EMBEDS = {
INFO: async (data: Message | Interaction) => {
let GuildCache = await Cache.getGuild(data.guildId!);
let GuildCache = await Cache.getCachedGuild(data.guildId!);
// TODO: Better error handling
if (typeof GuildCache === 'undefined') throw new Error('Guild not found');