Home > database >  How can I get the "bio" value of a "User" object in JavaScript?
How can I get the "bio" value of a "User" object in JavaScript?

Time:12-08

I want to get the "bio" value from "User" object. The image below shows what I mean:

The object

I get this object when I run this code using discordjs-selfbot-v13 npm. The code.

I tried to console it like that:

console.log(await member.getProfile().bio)

And like this too:

console.log(await member.getProfile()[0].bio)

And a lot of other code, but they didn't work.

CodePudding user response:

You have to resolve the promise first:

console.log((await member.getProfile()).bio)
  • Related