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

Add Attachment CDN params #6650

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

shaydewael
Copy link
Contributor

No description provided.

@walruscow
Copy link

Looks accurate to me!

@shaydewael shaydewael marked this pull request as ready for review February 12, 2024 14:52
@shaydewael shaydewael merged commit 4efb710 into discord:main Feb 12, 2024
3 checks passed
@shaydewael shaydewael deleted the add-auth-attachment-params branch February 12, 2024 20:07
@@ -363,6 +363,28 @@ data:image/jpeg;base64,BASE64_ENCODED_JPEG_IMAGE_DATA

Ensure you use the proper content type (`image/jpeg`, `image/png`, `image/gif`) that matches the image data being provided.

### Signed Attachment CDN URLs

Attachments uploaded to Discord's CDN (like user and bot-uploaded images) have signed URLs with a preset expiry time. Discord automatically refreshes attachment CDN URLs that appear within the client, so when your app receives a payload with a signed URL (like when you [fetch a message](#DOCS_RESOURCES_CHANNEL/get-channel-message)), it will be valid.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are messages with attachment links in the content updated, at least for the client?

@bsian03 bsian03 mentioned this pull request Feb 27, 2024
55 tasks
shaydewael added a commit to Jupith/discord-api-docs that referenced this pull request May 14, 2024
* draft attachment CDN change

* ye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants