Skip to content

Commit 3fd2c30

Browse files
committed
Section
1 parent 2aeb07a commit 3fd2c30

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/commands/inventar.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,17 @@ export default class InventarCommand implements ApplicationCommand {
8080

8181
return {
8282
components: [
83-
new SectionBuilder()
84-
.setThumbnailAccessory(t => t.setURL("attachment://circle.png"))
85-
.addTextDisplayComponents(t => t.setContent(`## Inventar von ${user}`))
86-
.addTextDisplayComponents(
87-
...listItems.map(li => new TextDisplayBuilder().setContent(li)),
88-
)
89-
.addTextDisplayComponents(t =>
90-
t.setContent(`-# Seite ${pageIndex + 1} von ${lastPageIndex + 1}`),
91-
),
83+
new ContainerBuilder().addSectionComponents(section =>
84+
section
85+
.setThumbnailAccessory(t => t.setURL("attachment://circle.png"))
86+
.addTextDisplayComponents(t => t.setContent(`## Inventar von ${user}`))
87+
.addTextDisplayComponents(
88+
...listItems.map(li => new TextDisplayBuilder().setContent(li)),
89+
)
90+
.addTextDisplayComponents(t =>
91+
t.setContent(`-# Seite ${pageIndex + 1} von ${lastPageIndex + 1}`),
92+
),
93+
),
9294
new ActionRowBuilder<ButtonBuilder>().addComponents(
9395
new ButtonBuilder()
9496
.setCustomId("page-prev")

0 commit comments

Comments
 (0)