Androz2091 / discord-logs

📝Framework that simplify the usage of advanced Discord logs
239 stars 22 forks source link

objects issue #160

Open nitplayz opened 2 years ago

nitplayz commented 2 years ago

const embed = new MessageEmbed()
        .setColor(role.guild.me.displayHexColor)
        .setTimestamp()
        .setTitle(`Role Added`)

        if(!channel) return;

        channel.send({embeds: [
            embed.addField(`Added by:`, `**${member.user.tag}** (${member})`, true)
            .addField(`Role:`, `${role}`, true)
            .addField(`Added to: `, `${role.}`, true)

        ]}).catch((err) => {
            return console.log(err)
        });```

        on the field (Added to) when i o ```role.member.user.tag``` is shows me undefined
needhamgary commented 2 years ago

Make sure your intents are enabled for it. https://ziad87.net/intents/ check all the intents you need and add the number to your client and remove other intents that you have already, then report back.

nitplayz commented 2 years ago

bro i am not so noob ik that i need help regarding this