Skip to content

Commit

Permalink
fix(jda): update example book
Browse files Browse the repository at this point in the history
Signed-off-by: Jasper Lutz Severino <jasperlutzseverino@gmail.com>
  • Loading branch information
lutzseverino committed Aug 8, 2022
1 parent 30a4423 commit f26e7b7
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,24 @@ public ExampleBook() {
super("example");

addPages(
new SendableImpl("A regular ol' text message."),
new SendableImpl().setEmbeds(new EmbedImpl()
// First page, has regular text and a button of its own.
new SendableImpl("A regular ol' text message.")
.addActionableRows(ActionableRow.of(
new ClickableImpl(Clickable.Style.PRIMARY)
.setId("example-page-button")
.setDisplay("Pages can have buttons of their own!"))),
// Second page, has two embeds.
new SendableImpl().addEmbeds(
new EmbedImpl()
.setTitle("Embeds?")
.setDescription("No problemo."),
new EmbedImpl()
.setTitle("Another one, too!")
.setDescription("Messages can have multiple of these!")),
.setDescription("Messages can have multiple of these!")
),
// Third page, has regular text and an embed.
new SendableImpl().setText("Text and embeds at the same time?")
.setEmbeds(
.addEmbeds(
new EmbedImpl()
.setTitle("I betcha")
.setDescription("Need more convincing? Too bad, I've got no more pages left."))
Expand Down

0 comments on commit f26e7b7

Please sign in to comment.