This commit is contained in:
parent
955ea1f5d5
commit
602821878f
@ -75,7 +75,7 @@ module.exports = {
|
|||||||
if (checkRows.length > 0) {
|
if (checkRows.length > 0) {
|
||||||
// Já existe um guildId na tabela, você pode retornar uma resposta indicando a duplicação
|
// Já existe um guildId na tabela, você pode retornar uma resposta indicando a duplicação
|
||||||
interaction.editReply('❌ Este guildId já está registrado.');
|
interaction.editReply('❌ Este guildId já está registrado.');
|
||||||
console.log(checkRows.length); // Log the result
|
//console.log(checkRows.length); // Log the result
|
||||||
} else {
|
} else {
|
||||||
// O guildId não existe, podemos prosseguir com a inserção ou outra ação
|
// O guildId não existe, podemos prosseguir com a inserção ou outra ação
|
||||||
const insertQuery = `INSERT INTO Guilds (guildId,guildownerId) VALUES ('${guildId}','${guildownerId}')`;
|
const insertQuery = `INSERT INTO Guilds (guildId,guildownerId) VALUES ('${guildId}','${guildownerId}')`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user