Skip to content

Mark File component name/size fields as optional#8153

Merged
brad-discord merged 1 commit into
mainfrom
brad.buchanan/fix-file-component-docs
Feb 19, 2026
Merged

Mark File component name/size fields as optional#8153
brad-discord merged 1 commit into
mainfrom
brad.buchanan/fix-file-component-docs

Conversation

@brad-discord

@brad-discord brad-discord commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Marks name and size as optional (?) in the File component documentation table.

Both fields are server-populated from the referenced attachment and cannot be provided by clients. The descriptions already say "This field is ignored and provided by the API as part of the response", but the field names were missing the ? suffix that similar server-populated fields.

Fixes #8152

Both fields are server-populated from the referenced attachment and
cannot be provided by clients. They should be marked optional to match
the convention used by similar server-populated fields on Unfurled
Media Item (proxy_url?, height?, width?, etc.).

Fixes #8152
@brad-discord
brad-discord marked this pull request as ready for review February 19, 2026 18:35
@brad-discord
brad-discord requested a review from a team as a code owner February 19, 2026 18:35
@brad-discord
brad-discord requested review from colinloretz and removed request for a team February 19, 2026 18:35
@brad-discord
brad-discord merged commit 1b4b566 into main Feb 19, 2026
5 checks passed
@brad-discord
brad-discord deleted the brad.buchanan/fix-file-component-docs branch February 19, 2026 23:10
@broman

broman commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

@brad-discord would you be kind enough to satisfy my curiosity — what is “selentic”?

xavier-archlinux-tw pushed a commit to xavier-archlinux-tw/discord-api-docs that referenced this pull request Jul 14, 2026
Both fields are server-populated from the referenced attachment and
cannot be provided by clients. They should be marked optional to match
the convention used by similar server-populated fields on Unfurled
Media Item (proxy_url?, height?, width?, etc.).

Fixes discord#8152
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.

File component documentation appears to be incorrect

3 participants