Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Discord Attachment URLs #1151

Open
Puyodead1 opened this issue Jul 21, 2024 · 0 comments
Open

Refresh Discord Attachment URLs #1151

Puyodead1 opened this issue Jul 21, 2024 · 0 comments
Labels
Enhancement New feature or request Module: CDN Priority:low Minor inconvenience, doesn't break Spacebar

Comments

@Puyodead1
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Since Discord implemented signed attachment URLs, they now expire, sharing any of these links will break after some time.

Describe the solution you'd like
The server could refresh these URLs by making a request to the Discord API, using a bot token (it works for some reason)

Describe alternatives you've considered
One could re-upload the file to a different host or to the Spacebar instance, however this may not always be ideal.

Additional context
Refreshing the links is as simple as a post request, which can be seen in this project:
https://github.com/ShufflePerson/Discord_CDN/blob/master/src/Discord/Discord.ts

However, unlike this project, you do not need to use a user token, and thus would not be breaking the Discord ToS.

Kind of looking for feedback on this FR

@Puyodead1 Puyodead1 added Enhancement New feature or request Module: CDN Priority:low Minor inconvenience, doesn't break Spacebar labels Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Module: CDN Priority:low Minor inconvenience, doesn't break Spacebar
Projects
None yet
Development

No branches or pull requests

1 participant