Alternative syntax for gallery items
I have this codeCan I refactor this code so that I'm not returning a function from
.map() to make this code easier to understand?5 Replies
yes,
<MediaGalleryBuilder>.addItems() also accepts a rest param or an array of MediaGalleryItemBuilders as welldocumentation suggestion for @functiondj:
:method: MediaGalleryBuilder#addItems()
discord.js@14.24.2
Adds items to this media gallery.thanks!
The thread owner has marked this issue as solved.