-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed FetchApplicationEmojisAsync throwing
GET /applications/{application.id}/emojis returns the emojis under a nested "items" object instead of returning an array directly. oops
- Loading branch information
1 parent
976ccda
commit 62010f3
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/Disqord.Core/Models/Application/ApplicationEmojisJsonModel.cs
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,9 @@ | ||
using Disqord.Serialization.Json; | ||
|
||
namespace Disqord.Models; | ||
|
||
public class ApplicationEmojisJsonModel : JsonModel | ||
{ | ||
[JsonProperty("items")] | ||
public EmojiJsonModel[] Items = null!; | ||
} |
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