Overview
Properties
Properties
updateDate
Type: Date
The last date when the user changed anything in their profile, e.g. their description or their profile picture.
Methods
follows(channel)
asyncChecks whether the user is following the given channel.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channel | UserIdResolvable | none |
The channel to check for the user's follow. |
getChannelPlaceholder()
Gets a channel placeholder object for the user, which can do anything you can do to a channel with just the ID.
getFollows(page, limit, orderBy, orderDirection)
asyncRetrieves a list of channels followed by the user.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
page | number | none |
The result page you want to retrieve. |
|
limit | number | none |
The number of results you want to retrieve. |
|
orderBy | "created_at" | "last_broadcast" | "login" | none | The field to order by. |
|
orderDirection | "asc" | "desc" | none |
The direction to order in - ascending or descending. |
getFollowTo(channel)
asyncRetrieves the follow data of the user to a given channel.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channel | UserIdResolvable | none |
The channel to retrieve the follow data for. |
getSubscriptionTo(channel)
asyncRetrieves the subscription data for the user to the given 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 user. If you only have access to the channel, use ChannelPlaceholder#getSubscriptionBy instead.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channel | UserIdResolvable | none |
The channel you want to get the subscription data for. |
isSubscribedTo(channel)
asyncChecks whether the user is subscribed to the given channel.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channel | UserIdResolvable | none |
The channel you want to check the subscription for. |