-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http): List application emojis does not return a raw list (#2376)
For some reason "List Application Emojis" returns a object with a single `items` key which caused our use of `ListBody` to fail here. Resolves: #2373
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::guild::Emoji; | ||
|
||
/// List of application emojis | ||
#[derive(Clone, Debug, Hash, PartialEq, Eq, Deserialize, Serialize)] | ||
pub struct EmojiList { | ||
/// List of application emojis | ||
pub items: Vec<Emoji>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
pub mod command; | ||
mod emoji; | ||
pub mod interaction; | ||
pub mod monetization; | ||
|
||
pub use emoji::EmojiList; |