fix: name and size are not required on FileComponent#3115
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3115/head:pr-3115
git checkout pr-3115This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3115/head |
plun1331
left a comment
There was a problem hiding this comment.
changelog should not be needed, minor backend change
|
This also needs to be reflected in the API (/components.py) and user model (/ui/file.py), as both are not marked as optional currently. |
Head branch was pushed to by a user without write access
|
This isn't a file upload, this is a file display message component |
Sorry, I'll work back on it soon, I didn't sleep for long my bad. |
|
PR is good to be reviewed, account is back! |
Paillat-dev
left a comment
There was a problem hiding this comment.
lgtm; thank for the PR
Could you add a CHANGELOG.md entry under "Changed" ? Feel free to take a look at other entries to see what they look like.
|
Is this as changelog good for you, or anything to change? |
name and size are not required on FileComponent
Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: Soheab <[email protected]>
Summary
nameandsizeare populated by the API and aren’t always present in the payload, so their type hints are updated to reflect the actual behavior.Related documentation update PR: discord/discord-api-docs#8153
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.