|
|
@ -129,10 +129,11 @@ router.post('/', (req: Request, res: Response, next: Function) => {
|
|
|
|
// Build the embed
|
|
|
|
// Build the embed
|
|
|
|
const embed = new MessageBuilder()
|
|
|
|
const embed = new MessageBuilder()
|
|
|
|
.setTitle(logInfo)
|
|
|
|
.setTitle(logInfo)
|
|
|
|
//@ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
.setURL(resourceUrl)
|
|
|
|
.setUrl(resourceUrl)
|
|
|
|
.setDescription(`${admin ? `**User:** \`${uploader}\`\n` : ''}**Size:** \`${formatBytes(req.file.size)}\`\n**[Delete](${deleteUrl})**`)
|
|
|
|
.setDescription(`${admin ? `**User:** \`${uploader}\`\n` : ''}**Size:** \`${formatBytes(req.file.size)}\`\n**[Delete](${deleteUrl})**`)
|
|
|
|
.setThumbnail(thumbnailUrl)
|
|
|
|
.setThumbnail(thumbnailUrl)
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
.setColor(req.file.vibrant)
|
|
|
|
.setColor(req.file.vibrant)
|
|
|
|
.setTimestamp();
|
|
|
|
.setTimestamp();
|
|
|
|
|
|
|
|
|
|
|
|