update messagecache logging
This commit is contained in:
parent
7964573beb
commit
8afd68e0d8
@ -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.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,8 +54,8 @@ class Command extends Component {
|
||||
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;
|
Loading…
Reference in New Issue
Block a user