#Get status of user
17 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
This is what I'm trying: person.presence.status
Error: TypeError: Cannot read properties of undefined (reading 'status')
how is person defined?
.addUserOption(option => option.setName('user').setDescription('Provides information about the user.'))
const person = interaction.options.getUser('user');
users don't have presences, members do
consider using ...getMember('user')
I see, let me try it
nop
does it produce the same error, or is it now reading properties of null?
then the member is simply offline (or you don't have the proper intents)
which intents do i need
you will need the GuildPresences intent
👍