mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-14 03:09:59 +00:00
Add user data caching
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user