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