Skip to content

Commit

Permalink
Add new message and embed types (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment authored Aug 21, 2024
1 parent c5b0a6d commit 4517d28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/dv8tion/jda/api/entities/EmbedType.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ public enum EmbedType
{
IMAGE("image"),
VIDEO("video"),
GIFV("gifv"),
ARTICLE("article"),
LINK("link"),
RICH("rich"),
AUTO_MODERATION("auto_moderation_message"),
POLL_RESULT("poll_result"),
UNKNOWN("");

private final String key;

EmbedType(String key)
{
this.key = key;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/dv8tion/jda/api/entities/MessageType.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ public enum MessageType
*/
PURCHASE_NOTIFICATION(44, true, true),

/**
* Sent when a poll completed in the channel.
*/
POLL_RESULT(46, true, true),

/**
* Unknown MessageType.
*/
Expand Down

0 comments on commit 4517d28

Please sign in to comment.