Skip to content

MentionUser

Represents a user that was mentioned in a message included in a mention fragment. This is not represented by a BaseUser class as we want it to not have a connection or subscription property.

Constructors

new MentionUser()

1
new MentionUser(data: MentionUserData): MentionUser

Builds up a MentionUser.

Parameters

ParameterTypeDescription
dataMentionUserDataThe data for the user who was mentioned.

Returns

MentionUser

Source

twitchfy/packages/eventsub/src/structures/messages/MentionUser.ts:25

Properties

PropertyModifierTypeDescription
displayNamereadonlystringThe display name of the user who was mentioned.
idreadonlystringThe ID of the user who was mentioned.
loginreadonlystringThe login name of the user who was mentioned.