datallboy
datallboy
DIAdiscord.js - Imagine an app
Created by datallboy on 2/2/2024 in #djs-questions
Dynamic Amount of Message Reactions
Was looking at old guides and old docs. New docs says ActionRowBuilder.addComponent can take an array. The link to documentation on the guides website is pointing to old docs site, and I didn't catch that.
8 replies
DIAdiscord.js - Imagine an app
Created by datallboy on 2/2/2024 in #djs-questions
Dynamic Amount of Message Reactions
That's an option, yes. Largely the same "how to write this" problem as using reactions. Still need to dynamically write a certain amount of buttons depending on the length of array containing possible answers to a question.
const confirm = new ButtonBuilder()
.`setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle(ButtonStyle.Danger);`
const confirm = new ButtonBuilder()
.`setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle(ButtonStyle.Danger);`
How to go about writing this x amount of times depending on array length.
8 replies