This commit is contained in:
Bxio 2025-04-27 02:27:40 +01:00
parent a38fd9fffd
commit b906097987

View File

@ -60,11 +60,12 @@ module.exports = {
}
// 2 - Inserir no banco
const conn.execute(
await conn.execute(
`INSERT INTO users (discord_id, discord_avatar, discord_username, cargo, level) VALUES (?, ?, ?, ?, ?)`,
[nome.id, idavatar,nome.username, cargo, "0"]
);
// 3 - Pegar o membro na guilda
const member = await interaction.guild.members.fetch(nome.id);