Overview
Properties
This is used for example when you only have retrieved user data, but not channel data. This can do anything you can do with only a channel ID, as it's equivalent to the user ID.
Properties
Methods
getCheermotes()
asyncRetrieves the list of cheermotes you can use in the channel.
Return type: CheermoteList
getSubscriptionBy(user)
asyncRetrieves the subscription data for the given user to the channel.
Throws if the channel doesn't have a subscription program or the user is not subscribed to it.
This method requires access to the channel. If you only have access to the user, use User#getSubscriptionTo instead.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
user | UserIdResolvable | none | The user you want to get the subscription data for. |
Return type: ChannelSubscription | null
hasSubscriber(user)
asyncChecks whether the given user is subscribed to the channel.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
user | UserIdResolvable | none | The user you want to check the subscription for. |
Return type: boolean