#Attachment links get broken because their lifetime on the CDN is short

1 messages · Page 1 of 1 (latest)

fringe dome
#

Hi TicketTool Dev team,

I've noticed that lately the attachments in direct transcripts get broken quickly now.
This is due to the attachment being deleted from Discord's CDN quicker than it used to when the original message no longer exists.

Don't worry, I come with a solution that will unfortunately require a tiny bit of coding

I understand that ticket tool creates an HTML copy of the ticket's channel messages, attaches it to a message, posts it in the designated channel and then the Direct Transcript link only points to it with https://tickettool.xyz/direct?url= prepended to load it as a website instead of a file.

The attachments remain accessible through https://media.discordapp.net longer than https://cdn.discordapp.com

Would it be possible for the dev team to add some code to replace https://cdn.discordapp.com attachment links with https://media.discordapp.net attachment links in the transcript html file to fix this issue?

muted laurel
#

This is not a bug @fringe dome , use the appropiate channel to make a suggestion or a comment

fringe dome
#

The attachments used to show up, now attachments appear as broken. This defeats the purpose of using the ticket tool over any other bot

#

I just presented a way to fix it to save you the trouble.

#

Even if it is not a bug with your code, it looks like a failure from the bot to others who don't know how it works

wild sapphireBOT
#
Attachments not being accessible

At the beginning of May 2022, Discord changed the way they store their deleted files, before this update, files could be accessible for up to 30 days after which they would get erased entirely from the Cloudflare cache. Now the files, including images, aren't accessible since they are deleted, which is why premium users [embed up to 8mb](#📣│bot-news message) worth of pictures within transcripts.

In the major update that's being worked on the developer is looking forward to implementing a better solution to this inconvenience in order for images to be saved, at least for a temporal way.

muted laurel
#

Also it's not a global issue

#

There are deleted files that the bot will be able to embed on the transcript even when they were deleted