Been a bit since I worked with DJS V13, How do I add multiple buttons again?
I have this code:
How do I make it an array/object again so I can have more multiple buttons?
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Cool. Thank you!
I don't understand, where does the comma go? There isn't a
{}
around new MessageButton
and the docs don't have an example... can I add that around new MessageButton
?Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ah, I see. Thanks again!
i mean, the idea is to
.addComponents(1, 2, 3, 4, 5, ...)
each component is it's own MessageButton instance
it's not much magic, just variable amount of separated arguments, for which you each but a button
you could be doing .addComponents(b1, b2, b3, b4)
and define bn = new MessageButton()...
but the intermediary assignments can be omitted, of course