Overview
Properties
Properties
Methods
follows(broadcaster)
asyncChecks whether the user is following the given broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
broadcaster | UserIdResolvable | none | The broadcaster to check the user's follow to. |
Return type: boolean
getFollowFrom(user)
asyncRetrieves the follow data of the given user to the broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
user | UserIdResolvable | none | The user to check the follow from. |
Return type: HelixFollow | null
getFollows()
asyncRetrieves a list of broadcasters the user follows.
Return type: HelixPaginatedResultWithTotal<HelixFollow>
getFollowTo(broadcaster)
asyncRetrieves the follow data of the user to the given broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
broadcaster | UserIdResolvable | none | The broadcaster to check the follow to. |
Return type: HelixFollow | null
getSubscriptionTo(broadcaster)
asyncRetrieves the subscription data for the user to the given broadcaster, or null
if the user is not subscribed.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
broadcaster | UserIdResolvable | none | The broadcaster you want to get the subscription data for. |
Return type: HelixSubscription | null
isFollowedBy(user)
asyncChecks whether the given user is following the broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
user | UserIdResolvable | none | The user to check the broadcaster's follow from. |
Return type: boolean
isSubscribedTo(broadcaster)
asyncChecks whether the user is subscribed to the given broadcaster.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
broadcaster | UserIdResolvable | none | The broadcaster you want to check the subscription for. |
Return type: boolean