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

Update MessageReference Struct #2994

Closed
MarkusTheOrt opened this issue Oct 18, 2024 · 1 comment · Fixed by #2996
Closed

Update MessageReference Struct #2994

MarkusTheOrt opened this issue Oct 18, 2024 · 1 comment · Fixed by #2996

Comments

@MarkusTheOrt
Copy link
Contributor

MarkusTheOrt commented Oct 18, 2024

the MessageReference struct is missing the type field (see here: https://discord.com/developers/docs/resources/message#message-reference-object)

I am happy to implement this myself, the question is do you want this added as a struct field, or make a union enum from this?

@GnomedDev
Copy link
Member

This looks to be part of fowarding, which should have it's issue opened to track, but you can add this as a field as part of the forwarding work if you want. Use our enum_number! macro to make MessageReferenceType/Kind (depending what everything else is) and add it as a field.

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