mirror of https://github.com/AlphaNecron/Void.git
chore(twilight): made log messages embedded by default
This commit is contained in:
parent
7a4877a312
commit
ef3fda59bb
|
@ -59,7 +59,7 @@ const upload = {
|
|||
slug,
|
||||
origFileName: fileName.split('/').pop(),
|
||||
fileName: `${rand}${ext}`,
|
||||
mimetype: getMimetype(res.headers.get('Content-Type').split(';').shift(), ext),
|
||||
mimetype: getMimetype(res.headers.get('Content-Type').trim().split(';').shift(), ext),
|
||||
userId: config.bot.default_uid,
|
||||
deletionToken
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@ export class Logger {
|
|||
|
||||
log(msg: MessageEmbed | string) {
|
||||
if (!this.channel) return;
|
||||
this.channel.send(msg);
|
||||
this.channel.send(typeof msg === 'string' ? new MessageEmbed().setTitle(msg).setColor('#B794F4').setTimestamp() : msg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue