clear quel que consolelog

This commit is contained in:
VALOU3336
2024-03-03 10:51:42 +01:00
parent ec01447f7a
commit b3fd7d79a8
4 changed files with 72 additions and 8 deletions
-6
View File
@@ -94,13 +94,8 @@ module.exports = {
let isConfidential = !ConfidentielAuthor.toLowerCase().startsWith('n');
data.confession = data.confession || {};
data.confession.channel = data.confession.channel || {};
console.log(guildId);
console.log(data.guildId.confession.channel);
const channelId = data.confession.channel[guildId];
const embed = new EmbedBuilder()
.setTitle('**Nouvelle Confession**')
.setDescription(ConfessionMessageToSend)
@@ -114,7 +109,6 @@ module.exports = {
if (channelId) {
const channel = interaction.guild.channels.cache.get(channelId);
console.log(channelId);
channel.send({ embeds: [embed] });
} else {
console.error(`Le salon avec l'ID ${channelId} n'a pas été trouvé.`);