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

Duplicate field error on Interaction when the entitlements field is present #2358

Closed
jonastar opened this issue Jul 4, 2024 · 2 comments · Fixed by #2359
Closed

Duplicate field error on Interaction when the entitlements field is present #2358

jonastar opened this issue Jul 4, 2024 · 2 comments · Fixed by #2359

Comments

@jonastar
Copy link

jonastar commented Jul 4, 2024

Using the latest git version.

This seems to trigger if the field is present in the payload, the cause of the error is this line: https://github.com/twilight-rs/twilight/blob/main/twilight-model/src/application/interaction/mod.rs#L272

@Erk-
Copy link
Member

Erk- commented Jul 4, 2024

I made a patch that should resolve this, if you have some time it would be nice if you could test it.

@jonastar
Copy link
Author

jonastar commented Jul 4, 2024

Seems to work, was gonna open a pr myself but forgot to actually open the pr after i made the fix heh...

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 a pull request may close this issue.

2 participants