Skip to content

Commit

Permalink
Add embed footer support
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Jan 5, 2024
1 parent fdbdb93 commit 0127b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/neoforged/camelot/script/ScriptMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public MessageEmbed asEmbed() {
obj.getString("name"), obj.getString("url"), obj.getString("iconUrl")
));

stringOrObject("footer", builder::setFooter, obj -> builder.setFooter(obj.getString("value"), obj.getString("iconUrl")));

return builder.build();
}

Expand Down

0 comments on commit 0127b8d

Please sign in to comment.