Badge
A badge which is assigned to an user.
Constructors
new Badge()
Builds up a badge.
Parameters
Parameter | Type | Description |
---|---|---|
data | BadgeData | The data of the badge. |
Returns
Source
twitchfy/packages/eventsub/src/structures/messages/Badge.ts:27
Properties
Property | Modifier | Type | Description |
---|---|---|---|
id | readonly | string | The ID of the badge. |
info | readonly | string | Additional information about the badge. This field is only presented in subscribed badges and contains the number of months the user has been subscribed for. |
setId | readonly | string | The ID of the set which contains the badge. |