Constructor
new User() → {User}
- Source
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
- Source
avatarDecoration :string
the avatar decoration of this user
Type:
- string
- Source
(nullable) avatarURL :string
the avatar url of the user
Type:
- string
- Source
disc :string
the discriminator of this user
Type:
- string
- Source
id :string
the id of this user
Type:
- string
- Source
publicFlags :number
the public flags of this user
Type:
- number
- Source
tag :string
the tag of this user
Type:
- string
- Source
username :string
the username of this user
Type:
- string
- Source