This commit is contained in:
parent
1faa3c60bd
commit
6844a4ff57
@ -45,7 +45,7 @@ module.exports = {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
await interaction.reply({ content: `Selecionaste: \r nome:${nome}\r id:${nome.id} \r cargo:<@&${cargo}>(${cargo}) \r url:${url}\r idavatar:${idavatar}`, ephemeral: true });
|
await interaction.editReply({ content: `Selecionaste: \r nome:${nome}\r id:${nome.id} \r cargo:<@&${cargo}>(${cargo}) \r url:${url}\r idavatar:${idavatar}`, ephemeral: true });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ module.exports = {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (existing.length > 0) {
|
if (existing.length > 0) {
|
||||||
return await interaction.reply({ content: `❗ O membro ${nome.username} já está registrado no banco de dados.`, ephemeral: true });
|
return await interaction.editReply({ content: `❗ O membro ${nome.username} já está registrado no banco de dados.`, ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2 - Inserir no banco
|
// 2 - Inserir no banco
|
||||||
@ -81,7 +81,7 @@ module.exports = {
|
|||||||
await member.roles.add(cargo);
|
await member.roles.add(cargo);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
await interaction.reply({ content: '❌ Erro ao adicionar membro ou atribuir cargo.', ephemeral: true });
|
await interaction.editReply({ content: '❌ Erro ao adicionar membro ou atribuir cargo.', ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user