! ! !!!! BefAci.js
! ! !!!! BefAci.js
DIAdiscord.js - Imagine an app
Created by ! ! !!!! BefAci.js on 6/5/2025 in #djs-questions
ComponentsV2 - How to set more than one button
Hello, I want to set ActionRows with maximum 5 buttons but we can't set more, and since on a section the setButtonAccessory is toset one I can't set a range of buttons (for play, stop shuffle, ect..)
const components = [
new ContainerBuilder()
.addSectionComponents(
new SectionBuilder()
.addTextDisplayComponents(
new TextDisplayBuilder().setContent(`:playing_song: **\`${song.name}\` by \`${song.uploader?.name}\`**`),
new TextDisplayBuilder().setContent(`00:00 ${songdurationbar_pointer}${incompletedurationbar} ${song.formattedDuration}`)
)
),
new SeparatorBuilder().setSpacing(SeparatorSpacingSize.Small).setDivider(true),
new ContainerBuilder()
.addSectionComponents(
new SectionBuilder()
.addTextDisplayComponents(
new TextDisplayBuilder().setContent(`:volumeicon: \`???\`%`)
)
.setButtonAccessory(
new ActionRowBuilder().addComponents(stop, playpause, skip, shuffle, repeat),
new ActionRowBuilder().addComponents(upvol, downvol)
)
)
]
const components = [
new ContainerBuilder()
.addSectionComponents(
new SectionBuilder()
.addTextDisplayComponents(
new TextDisplayBuilder().setContent(`:playing_song: **\`${song.name}\` by \`${song.uploader?.name}\`**`),
new TextDisplayBuilder().setContent(`00:00 ${songdurationbar_pointer}${incompletedurationbar} ${song.formattedDuration}`)
)
),
new SeparatorBuilder().setSpacing(SeparatorSpacingSize.Small).setDivider(true),
new ContainerBuilder()
.addSectionComponents(
new SectionBuilder()
.addTextDisplayComponents(
new TextDisplayBuilder().setContent(`:volumeicon: \`???\`%`)
)
.setButtonAccessory(
new ActionRowBuilder().addComponents(stop, playpause, skip, shuffle, repeat),
new ActionRowBuilder().addComponents(upvol, downvol)
)
)
]
31 replies
DIAdiscord.js - Imagine an app
Created by ! ! !!!! BefAci.js on 6/1/2025 in #djs-questions
Voice Status - how to set them
Hi, I have a question about the voice status that we see at the bottom of the voice channel name, how to set a voice status while the bot is on the voice? It's for my music player system.
12 replies