Document file_types filtering - #8506
Merged
colinloretz merged 12 commits intoAug 5, 2026
Merged
Conversation
Contributor
|
Thanks! We're going to roll this out next week and get this merged in. |
colinloretz
reviewed
Jul 31, 2026
vmphase
reviewed
Aug 1, 2026
5 tasks
7 tasks
6 tasks
vmphase
reviewed
Aug 2, 2026
Lulalaby
force-pushed
the
components/file-type-filtering
branch
from
August 2, 2026 21:58
e094817 to
88ce50c
Compare
colinloretz
self-requested a review
August 4, 2026 18:13
colinloretz
approved these changes
Aug 4, 2026
vmphase
reviewed
Aug 4, 2026
colinloretz
force-pushed
the
components/file-type-filtering
branch
from
August 5, 2026 18:26
5a38685 to
2cd0c18
Compare
vmphase
reviewed
Aug 5, 2026
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
Co-authored-by: Colin Loretz <colin.loretz@discordapp.com>
Co-authored-by: Michael <vmphase.dev@gmail.com>
Co-Authored-By: Michael <vmphase.dev@gmail.com>
git bash for the rescue
Co-authored-by: Michael <vmphase.dev@gmail.com>
Lulalaby
force-pushed
the
components/file-type-filtering
branch
from
August 5, 2026 21:08
433a0a2 to
76105e8
Compare
colinloretz
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐐 You can now restrict which files a user is allowed to upload, in both File Upload components and
ATTACHMENTcommand options.Provide a
file_typesarray with up to 10 entries. Each entry is either one of theimage,video, oraudiofile groups, or a dot-prefixed file extension such as.pdf:{ "type": 19, // ComponentType.FILE_UPLOAD "custom_id": "file_upload", "file_types": ["image", ".pdf"] }