Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objects issue #160

Open
nitplayz opened this issue Feb 3, 2022 · 2 comments
Open

objects issue #160

nitplayz opened this issue Feb 3, 2022 · 2 comments

Comments

@nitplayz
Copy link

nitplayz commented Feb 3, 2022

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
@GlitchApotamus
Copy link

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
Copy link
Author

nitplayz commented Feb 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants