User

Create a formatted User Object

Constructor

new User() → {User}

Returns:
Type: 
User
Example
const user = interaction.user; // returns the user object
const username = interaction.user.username; // returns the username

Members

avatar :string

the avatar hash of this user

Type:
  • string

avatarDecoration :string

the avatar decoration of this user

Type:
  • string

(nullable) avatarURL :string

the avatar url of the user

Type:
  • string

disc :string

the discriminator of this user

Type:
  • string

id :string

the id of this user

Type:
  • string

publicFlags :number

the public flags of this user

Type:
  • number

tag :string

the tag of this user

Type:
  • string

username :string

the username of this user

Type:
  • string