This commit is contained in:
parent
9ca603ddd0
commit
955ea1f5d5
@ -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.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user