fix: use `setURL` instead of `setUrl`, package seems unmaintained

pull/177/head
tycrek 1 year ago
parent 1a9fad7076
commit 340b44a300
No known key found for this signature in database
GPG Key ID: FF8A54DCE404885A

@ -130,7 +130,7 @@ router.post('/', (req: Request, res: Response, next: Function) => {
const embed = new MessageBuilder()
.setTitle(logInfo)
// @ts-ignore
.setUrl(resourceUrl)
.setURL(resourceUrl) // I don't know why this is throwing an error when `setUrl` is used but it does. This is a workaround.
.setDescription(`${admin ? `**User:** \`${uploader}\`\n` : ''}**Size:** \`${formatBytes(req.file.size)}\`\n**[Delete](${deleteUrl})**`)
.setThumbnail(thumbnailUrl)
// @ts-ignore

Loading…
Cancel
Save