Skip to content

Badge

A badge which is assigned to an user.

Constructors

new Badge()

1
new Badge(data: BadgeData): Badge

Builds up a badge.

Parameters

ParameterTypeDescription
dataBadgeDataThe data of the badge.

Returns

Badge

Source

twitchfy/packages/eventsub/src/structures/messages/Badge.ts:27

Properties

PropertyModifierTypeDescription
idreadonlystringThe ID of the badge.
inforeadonlystringAdditional information about the badge. This field is only presented in subscribed badges and contains the number of months the user has been subscribed for.
setIdreadonlystringThe ID of the set which contains the badge.