This commit is contained in:
parent
2de7d1028b
commit
4376cd8302
@ -6,10 +6,10 @@ const {
|
|||||||
ActionRowBuilder,
|
ActionRowBuilder,
|
||||||
StringSelectMenuBuilder,
|
StringSelectMenuBuilder,
|
||||||
ButtonBuilder,
|
ButtonBuilder,
|
||||||
} = require('discord.js');
|
} = require('discord.js');
|
||||||
const conn = require('../../../database/db');
|
const conn = require('../../../database/db');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'interactionCreate',
|
name: 'interactionCreate',
|
||||||
async execute(interaction, client) {
|
async execute(interaction, client) {
|
||||||
if (interaction.isCommand()) return;
|
if (interaction.isCommand()) return;
|
||||||
@ -36,12 +36,11 @@ module.exports = {
|
|||||||
|
|
||||||
const row = new ActionRowBuilder().addComponents(select);
|
const row = new ActionRowBuilder().addComponents(select);
|
||||||
|
|
||||||
// Resposta com o menu suspenso
|
/* return interaction.reply({
|
||||||
return interaction.reply({
|
|
||||||
content: '📦 Escolhe o recurso que queres editar:',
|
content: '📦 Escolhe o recurso que queres editar:',
|
||||||
components: [row],
|
components: [row],
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
});
|
}); */
|
||||||
}
|
}
|
||||||
|
|
||||||
// 🔵 Quando escolhe o recurso → mostrar o modal
|
// 🔵 Quando escolhe o recurso → mostrar o modal
|
||||||
@ -139,4 +138,5 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user