Skip to content

Commit

Permalink
fix(jda): fix example book
Browse files Browse the repository at this point in the history
release 2.7.0

Signed-off-by: Jasper Lutz Severino <jasperlutzseverino@gmail.com>
  • Loading branch information
lutzseverino committed Aug 8, 2022
1 parent fb6e820 commit 0f6b35b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>discord-books</artifactId>
<groupId>com.lutzseverino.discordbooks</groupId>
<version>2.1.3</version>
<version>2.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public ExampleBook() {

addPages(
new SendableImpl("A regular ol' text message."),
new SendableImpl().addEmbeds(new EmbedImpl()
new SendableImpl().setEmbeds(new EmbedImpl()
.setTitle("Embeds?")
.setDescription("No problemo."),
new EmbedImpl()
.setTitle("Another one, too!")
.setDescription("Messages can have multiple of these!")),
new SendableImpl().setText("Text and embeds at the same time?")
.addEmbeds(
.setEmbeds(
new EmbedImpl()
.setTitle("I betcha")
.setDescription("Need more convincing? Too bad, I've got no more pages left."))
Expand All @@ -31,15 +31,15 @@ public ExampleBook() {
setNextClickable(clickable -> clickable.setEmoji("➡"));
setPreviousClickable(clickable -> clickable.setEmoji("⬅️"));

setClickables(
addClickables(
getPreviousClickable(),
new ClickableImpl(Clickable.Style.DANGER)
.setId("example-danger")
.setEmoji("🔥"),
getNextClickable()
);

setActionableRows(
addActionableRows(
getClickableRow(),
ActionableRow.of(
new ClickableImpl(Clickable.Style.SECONDARY)
Expand Down

0 comments on commit 0f6b35b

Please sign in to comment.