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

Add message_snapshots on Message #3092

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

jamesbt365
Copy link
Member

@jamesbt365 jamesbt365 commented Jan 12, 2025

Fixes #2995, as sending messages doesn't seem to be documented unless i missed something? Either way its out of scope if additional documentation is needed, that can be handled at a later date.

Had to write a custom deserialize function because for whatever reason Discord has nested the field, I'm not sure if this means they want to add more in the future, either way working with the nested field seems a bit unusual to the user.

If deserializing it this way is not a good idea We can nest it instead, though if the function can be made any more efficient that would be great too.

@github-actions github-actions bot added the model Related to the `model` module. label Jan 12, 2025
@arqunis arqunis added enhancement An improvement to Serenity. discord feature Related to Discord's functionality. labels Jan 15, 2025
@arqunis arqunis merged commit f28ac46 into serenity-rs:current Jan 15, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord feature Related to Discord's functionality. enhancement An improvement to Serenity. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Message Forwarding
2 participants