fix(twilight): thumbnail not showing

This commit is contained in:
AlphaNecron 2021-10-09 20:15:51 +07:00
parent d7fb2707be
commit 184b63e499
1 changed files with 2 additions and 2 deletions

View File

@ -19,13 +19,13 @@ export class Logger {
if (!this.channel) return;
this.channel.send(defaultEmbed(`By ${username}`)
.setTitle('File uploaded')
.setThumbnail(`http${config.core.secure ? 's' : ''}://${config.bot.hostname}/${file.fileName}`)
.setThumbnail(`http${config.core.secure ? 's' : ''}://${config.bot.hostname}${config.uploader.raw_route}/${file.fileName}`)
.addField('ID', file.id)
.addField('File name', file.fileName)
.addField('Original file name', file.origFileName || 'None')
.addField('Mime type', file.mimetype)
.addField('Uploaded at', file.uploadedAt)
.addField('View', `http${config.core.secure ? 's' : ''}://${config.bot.hostname}${config.uploader.raw_route}/${file.fileName}`));
.addField('View', `http${config.core.secure ? 's' : ''}://${config.bot.hostname}/${file.slug}`));
}
logUser(action: 'create' | 'update' | 'delete', user: { id, username, isAdmin }) {