From 8afd68e0d82bbaedd035eace99204091ef968806 Mon Sep 17 00:00:00 2001 From: nolan Date: Wed, 9 Jun 2021 17:50:56 -0700 Subject: [PATCH] update messagecache logging --- structure/client/components/observers/MessageCache.js | 4 ++-- structure/interfaces/Command.js | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/structure/client/components/observers/MessageCache.js b/structure/client/components/observers/MessageCache.js index e232de0..b3a02dd 100644 --- a/structure/client/components/observers/MessageCache.js +++ b/structure/client/components/observers/MessageCache.js @@ -127,7 +127,7 @@ class MessageCache extends Observer { } const buffer = await Util.downloadAsBuffer(attachment.proxyURL || attachment.url).catch((err) => { - this.client.logger.error(`Failed to download buffer for "${chalk.bold(data.name)}".\n${err.stack || err}`); + this.client.logger.error(`Failed to download buffer for "${chalk.bold(data.name)}".\n${err.stack || err}\nhttps://discord.com/channels/${message.guild.id}/${message.channel.id}/${message.id}`); return null; }); @@ -140,7 +140,7 @@ class MessageCache extends Observer { data.index = result?.insertedId; } else { //Upload using GridFS, not a priority right now. - this.client.logger.error(`Temporary logging; attachment "${chalk.bold(data.name)}" exceeds 15mb.`); + //this.client.logger.error(`Temporary logging; attachment "${chalk.bold(data.name)}" exceeds 15mb.`); } } diff --git a/structure/interfaces/Command.js b/structure/interfaces/Command.js index 0167884..35bd311 100644 --- a/structure/interfaces/Command.js +++ b/structure/interfaces/Command.js @@ -52,10 +52,10 @@ class Command extends Component { execute() { throw new Error(`${this.resolveable} is missing an execute function.`); - } + } - get moduleResolveable() { - return `${this.module.id}:${this.id}`; + async checkPermissions() { + //NOTE: Todo (move from permissions inhibitor) } usageEmbed(message, verbose = false) { @@ -108,6 +108,10 @@ class Command extends Component { } + get moduleResolveable() { + return `${this.module.id}:${this.id}`; + } + } module.exports = Command; \ No newline at end of file