Skip to content

Conversation

@Kelwing
Copy link
Contributor

@Kelwing Kelwing commented Aug 7, 2023

The VanityUrl model used for the response from /guilds/{guild.id}/vanity-url is missing the uses field.
Despite what the aforementioned docs say, the code will not be null if the vanity url is not set, instead, you get a 403 response, so I did not make any additional changes beyond adding the uses field.

@github-actions github-actions bot added c-model Affects the model crate t-fix Fixes a bug in the library labels Aug 7, 2023
@itohatweb
Copy link
Member

We just tested that, and have found out that code can be null.

@Kelwing
Copy link
Contributor Author

Kelwing commented Aug 27, 2023

We just tested that, and have found out that code can be null.

Well, the PR was just to add the uses, would you like me to open another PR for code, or just include that in this one? Modifying the code field is a bit out of scope.

@itohatweb
Copy link
Member

We just tested that, and have found out that code can be null.

Well, the PR was just to add the uses, would you like me to open another PR for code, or just include that in this one? Modifying the code field is a bit out of scope.

Yes, another PR fixing this would be ideal.

@Gelbpunkt Gelbpunkt merged commit fd2ad69 into twilight-rs:main Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-model Affects the model crate t-fix Fixes a bug in the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants