const vcChannel = int.guild.channels.cache.get(channelID);
if (vcChannel instanceof VoiceChannel) {
// Set permissions to deny the mentioned user from viewing the channel
vcChannel.permissionOverwrites.edit(everyoneRoleId, {
Connect: false,
})
.then(() => {
const embed = new EmbedBuilder()
.setColor('#0099ff') // Set the color of the embed
.setDescription(`<@${member.id}>, el canal ha sido bloqueado correctamente.`) // Set the description
// Send the embed with the image attachment
int.reply({
embeds: [embed],
ephemeral: true,
});
})
}
const vcChannel = int.guild.channels.cache.get(channelID);
if (vcChannel instanceof VoiceChannel) {
// Set permissions to deny the mentioned user from viewing the channel
vcChannel.permissionOverwrites.edit(everyoneRoleId, {
Connect: false,
})
.then(() => {
const embed = new EmbedBuilder()
.setColor('#0099ff') // Set the color of the embed
.setDescription(`<@${member.id}>, el canal ha sido bloqueado correctamente.`) // Set the description
// Send the embed with the image attachment
int.reply({
embeds: [embed],
ephemeral: true,
});
})
}