Update CurrentApplicationInfo and add support for editing it#3035
Update CurrentApplicationInfo and add support for editing it#3035ivinjabraham wants to merge 171 commits intoserenity-rs:nextfrom
CurrentApplicationInfo and add support for editing it#3035Conversation
f298296 to
424af70
Compare
jamesbt365
left a comment
There was a problem hiding this comment.
Use the provided to_vec function instead of importing it from serde_json.
|
Also you haven't added anything but the low level http interface? Http usually shouldn't be directly used and you should probably add a builder like how our other stuff interacts with http. |
424af70 to
0cee4cc
Compare
Pesky auto-import. Should be fixed now.
Right, so I'll make a |
|
It seems the |
5ba44d9 to
24ffd92
Compare
24ffd92 to
f2c1085
Compare
7f72d28 to
71ab298
Compare
20d45ab to
8fd6b7e
Compare
jamesbt365
left a comment
There was a problem hiding this comment.
edit_current_appllication_info.rs -> edit_current_application_info.rs
8c6dd76 to
6a5d2a5
Compare
6a5d2a5 to
8ed3e32
Compare
8ed3e32 to
52057ba
Compare
|
I think everything in |
This was missing on FullEvent but was present within the event itself.
Values are getting quite close to the u8 limit (193), so let's preemptively bump this to avoid future breaking changes.
Moves the feature-gated collector methods on `UserId`, `MessageId`, etc. into four traits: - `CollectMessages` - `CollectReactions` - `CollectModalInteractions` - `CollectComponentInteractions` This also moves the quick modal machinery into the collector module and defines a `QuickModal` trait. This fully removes any collector feature gates from the model types.
This file was removed from the module tree but never actually deleted.
Fixes CI failure
…rs#3075) Similar to message URLs, Discord also provides URLs for guild channels. Additionally, the function is added as an alternative for parsing a `Channel` from a string. Private channels are not affected by this change.
a088f6e to
1b63edf
Compare
| /// Icon for the app | ||
| pub fn icon(mut self, base64_image_data: String) -> Self { | ||
| self.icon = Some(base64_image_data); | ||
| self | ||
| } | ||
|
|
||
| /// Sets the default rich presence invite cover image using base64 image data. | ||
| pub fn cover_image(mut self, base64_image_data: String) -> Self { | ||
| self.cover_image = Some(base64_image_data); | ||
| self | ||
| } |
There was a problem hiding this comment.
Rather than passing in base64 data manually as a String, we should allow the user to decide the place they want to source the image from and convert it to base64 on their behalf, similar to how EditProfile::avatar does it using CreateAttachment.
| pub slug: FixedString, | ||
| #[serde(default)] | ||
| pub cover_image: Option<FixedString>, | ||
| pub cover_image: FixedString, |
There was a problem hiding this comment.
Similar to the application icon, the API returns a hash of a constant size, so this should use ImageHash to store the hash inline. Also should be wrapped in an Option<...>.
CurrentApplicationInfo and add support for editing it
57c79ff to
9a811a7
Compare
|
This PR looks to be idle and therefore I am closing it to clean up the PR list, if anyone wants to pick up this and resolve the existing review comments here feel free to open a new PR. |
Fixes #2977