This commit is contained in:
Bxio 2025-04-04 20:33:29 +01:00
parent 9ca603ddd0
commit 955ea1f5d5

View File

@ -71,7 +71,7 @@ module.exports = {
// Verificar se o guildId já existe na base de dados
const checkQuery = `SELECT * FROM Guilds WHERE guildId = '${guildId}'`;
const [checkRows] = await conn.execute(checkQuery);
console.log(checkRows); // Log the result
//console.log(checkRows); // Log the result
if (checkRows.length > 0) {
// Já existe um guildId na tabela, você pode retornar uma resposta indicando a duplicação
interaction.editReply('❌ Este guildId já está registrado.');