This commit is contained in:
parent
d718ecb424
commit
267bc6d451
@ -20,13 +20,13 @@ module.exports = {
|
||||
if (interaction.commandName === 'wdd') {
|
||||
try {
|
||||
const [rows] = await conn.execute(
|
||||
'SELECT nome FROM Choices WHERE nome LIKE ? LIMIT 25',
|
||||
'SELECT nome FROM choices WHERE name,value LIKE ? LIMIT 25',
|
||||
[`%${focusedValue}%`]
|
||||
);
|
||||
|
||||
const suggestions = rows.map(row => ({
|
||||
name: row.nome,
|
||||
value: row.nome,
|
||||
name: row.name,
|
||||
value: row.value,
|
||||
}));
|
||||
|
||||
await interaction.respond(suggestions);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user