mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Update Help.ts
This commit is contained in:
+4
-1
@@ -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 || '>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user