This commit is contained in:
Bxio 2025-04-17 09:58:43 +01:00
parent 68afe5bdb3
commit 7b1e116879

View File

@ -10,9 +10,11 @@ module.exports = {
if (interaction.isAutocomplete()) { if (interaction.isAutocomplete()) {
const focusedValue = interaction.options.getFocused(); const focusedValue = interaction.options.getFocused();
console.log(focusedValue);
if (interaction.commandName === 'wdd') { if (interaction.commandName === 'wdd') {
console.log(focusedValue);
try { try {
const [rows] = await conn.execute( const [rows] = await conn.execute(
'SELECT name,value FROM choices LIMIT 25', 'SELECT name,value FROM choices LIMIT 25',
[`%${focusedValue}%`] [`%${focusedValue}%`]