diff --git a/src/events/handlers/teste.js b/src/events/handlers/teste.js index 4c6c1a7..e43b378 100644 --- a/src/events/handlers/teste.js +++ b/src/events/handlers/teste.js @@ -10,9 +10,11 @@ module.exports = { if (interaction.isAutocomplete()) { const focusedValue = interaction.options.getFocused(); - console.log(focusedValue); + if (interaction.commandName === 'wdd') { + console.log(focusedValue); try { + const [rows] = await conn.execute( 'SELECT name,value FROM choices LIMIT 25', [`%${focusedValue}%`]