Overview
Properties
color
Type: string
The color that the user appears in in chat.
displayName
Type: string
The display name of the user.
isAtLeastKnownBot
Type: boolean
Whether the user is at least a known bot (i.e. known or verified).
isKnownBot
Type: boolean
Whether the user is a known bot.
isVerifiedBot
Type: boolean
Whether the user is a verified bot.
userId
Type: string
The ID of the user.
userName
Type: string
The name of the user.
Methods
getUser()
asyncRetrieves more information about the user.
hasBadge(id)
Checks whether the user has access to a given global badge.
Parameter | Type | Required | Default | Description |
---|
id | string | | none | The ID of a badge. |
Return type: boolean