Home > OS >  How to use a SQL Result in Discord.JS SelectMenus?
How to use a SQL Result in Discord.JS SelectMenus?

Time:06-07

I am trying to add Options to a SelectMenu from a SQL request. My code is the following:

case "edit":{
                const editrow = new MessageActionRow();
                let query = `SELECT * FROM tickettypes WHERE guild_id = '${interaction.guild.id}'`
                const editmenu = new MessageSelectMenu()
                    .setCustomId('editselect')
                    .setPlaceholder('           
  • Related