Activities
- Topic
channel.activities- Scope
activities:read
This event is fired when the channel receives a new activity.
Payload
Section titled “Payload”| Parameter | Type | Description |
|---|---|---|
data.type |
string |
The type of the activity (see Activity Types) |
data.provider |
string |
Where the activity originated from (see Providers) |
data.channel |
string |
Channel ID |
data.data.username |
string |
The username of the user who triggered the activity OR the user the activity applies to (e.g. gifting a sub to a user) |
data.data.displayName |
string |
Display name of the sender |
data.data.providerId |
string |
User ID assigned by the provider |
data.data.avatar |
string |
Avatar URL of the user |
Activity Types
Section titled “Activity Types”The possible activity types are:
eventfollowtipcommunityGiftPurchasechannelPointsRedemptionsponsorsuperchathostraidsubscribercheercheerPurchasecharityCampaignDonationredemptionmerchfansupporterfollowerstarssharevideolikeelixirpurchasehypetrainStarthypetrainProgresshypetrainEndgiveawaysponsorshipsponsorshipPassive
Providers
Section titled “Providers”provider can be one of:
twitchyoutuberepresentfourthwalllunarlilithgamesxStreamElementsgrabtapkick
Example
Section titled “Example”{ "id": "01HPPM2TQ6CCMFQGHEN8MM1NN0", "ts": "2024-02-15T14:52:42Z", "type": "message", "topic": "channel.activities", "data": { "type": "follow", "provider": "twitch", "channel": "6183c7d4ebc632abbf809890", "data": { "username": "jtv", "displayName": "jtv", "providerId": "14027", "avatar": "https://static-cdn.jtvnw.net/user-default-pictures-uv/13e5fa74-defa-11e9-809c-784f43822e80-profile_image-300x300.png" }, "_id": "65ce2539b1585c5f909a91e1", "createdAt": "2024-02-15T14:52:41.608Z", "updatedAt": "2024-02-15T14:52:41.608Z", "activityId": "65ce2539b1585c5f909a91e1", "sessionEventsCount": 6 }}Related
Section titled “Related”- Tips - Tip/donation events
- Session Update - Individual session data updates
- Websockets - General information about the Astro Websocket Gateway