Hey i know you created this like embeds with the way you build the modal.
But could support for json be added? so we can post a json array with all the options, think that would make it easyer to create dynamic forms.
const exampleModal = {
type: 9,
data: {
title: 'LosKros Register',
custom_id: 'register',
components: [
{
type: 1,
components: [
{
type: 4,
custom_id: 'register',
label: 'Some random label',
style: 1,
min_length: 2,
max_length: 400,
required : true,
},
],
},
],
},
},
Just an example the last part might be a better way to do it.
But would make life a lot easyer, creating modals, just using the json format as well.