From ab48ac62208ef919357596fc2f0ecef7aad1793a Mon Sep 17 00:00:00 2001 From: Bxio Date: Sat, 5 Apr 2025 11:45:30 +0100 Subject: [PATCH] =?UTF-8?q?/wdd=20-=20Vers=C3=A3o=20final=20a=20funcionar?= =?UTF-8?q?=20com=20mysql=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/Community/teste.js | 1 + src/events/handlers/teste.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/Community/teste.js b/src/commands/Community/teste.js index aff515b..ce038b0 100644 --- a/src/commands/Community/teste.js +++ b/src/commands/Community/teste.js @@ -3,6 +3,7 @@ const { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, Messag + console.error("--------------------- teste.js ---------------------"); module.exports = { data: new SlashCommandBuilder() diff --git a/src/events/handlers/teste.js b/src/events/handlers/teste.js index 8400b34..dc494e7 100644 --- a/src/events/handlers/teste.js +++ b/src/events/handlers/teste.js @@ -2,6 +2,7 @@ const { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, MessageFlags } = require('discord.js'); const conn = require('../../../database/db'); // Ajusta o caminho + module.exports = { name: 'interactionCreate', async execute(interaction, client) { @@ -14,7 +15,7 @@ module.exports = { const [rows] = await conn.execute( 'SELECT name,value FROM choices LIMIT 25', [`%${focusedValue}%`] - ); + ); const suggestions = rows.map(row => ({ name: row.name,