Button not displaying

Hey, so i'm having a paginator with select menu, but when I click the select menu, one of the button doesn't display, it used to work perfectly fine before porting over to v14
components: [selectRow, new ActionRowBuilder().addComponents(ButtonBuilder.from(doubleLeftArrow).setDisabled(true),
ButtonBuilder.from(leftArrow).setDisabled(true),
(arrayOut.length !== 1 ? (ButtonBuilder.from(rightArrow).setDisabled(false), ButtonBuilder.from(doubleRightArrow).setDisabled(false)) : ButtonBuilder.from(rightArrow).setDisabled(true), ButtonBuilder.from(doubleRightArrow).setDisabled(true)))]
components: [selectRow, new ActionRowBuilder().addComponents(ButtonBuilder.from(doubleLeftArrow).setDisabled(true),
ButtonBuilder.from(leftArrow).setDisabled(true),
(arrayOut.length !== 1 ? (ButtonBuilder.from(rightArrow).setDisabled(false), ButtonBuilder.from(doubleRightArrow).setDisabled(false)) : ButtonBuilder.from(rightArrow).setDisabled(true), ButtonBuilder.from(doubleRightArrow).setDisabled(true)))]
Yes I have checked that the emoji is valid
4 Replies
monbrey
monbrey3y ago
just seems like its your conditional doing this actually no idk
chewie
chewie3y ago
Make sure your brackets arent off, do be looking weird
Polar
PolarOP3y ago
thanks it worked
Want results from more Discord servers?
Add your server