Update Help.ts

This commit is contained in:
2022-01-27 17:59:07 +07:00
parent 8f35c8e49a
commit 18c1a8511b
+4 -1
View File
@@ -7,7 +7,10 @@ const EMBEDS = {
INFO: async (data: Message | Interaction) => {
let GuildCache = await Cache.getGuild(data.guildId!);
//if(typeof GuildCache === 'undefined' || typeof GuildCache.prefix === 'undefined') return;
// TODO: Better error handling
if(typeof GuildCache === 'undefined')
throw new Error("Guild not found");
let prefix = GuildCache.prefix || '>';