7.8 KiB
Available Events
ban
Moderator action caused a user to be banned from chat.
Note: This event does not contain the acting user! You cannot use the {{.user}}
variable.
Fields:
channel
- The channel the event occurred intarget_id
- The ID of the user being bannedtarget_name
- The login-name of the user being banned
bits
User spent bits in the channel. The full message is available like in a normal chat message, additionally the {{ .bits }}
field is added with the total amount of bits spent.
Fields:
bits
- Total amount of bits spent in the messagechannel
- The channel the event occurred inusername
- The login-name of the user who spent the bits
category_update
The current category for the channel was changed. (This event has some delay to the real category change!)
Fields:
category
- The name of the new game / categorychannel
- The channel the event occurred in
channelpoint_redeem
A custom channel-point reward was redeemed in the given channel. (Only available when EventSub support is available and streamer granted required permissions!)
Fields:
channel
- The channel the event occurred inreward_cost
- Number of points the user paid for the rewardreward_id
- ID of the reward the user redeemedreward_title
- Title of the reward the user redeemedstatus
- Status of the reward (one ofunknown
,unfulfilled
,fulfilled
, andcanceled
)user_id
- The ID of the user who redeemed the rewarduser_input
- The text the user entered into the input for the rewarduser
- The login-name of the user who redeemed the reward
clearchat
Moderator action caused chat to be cleared.
Note: This event does not contain the acting user! You cannot use the {{.user}}
variable.
Fields:
channel
- The channel the event occurred in
delete
Moderator action caused a chat message to be deleted.
Note: This event does not contain the acting user! You cannot use the {{.user}}
variable.
Fields:
channel
- The channel the event occurred inmessage_id
- The UUID of the message being deletedtarget_name
- Login name of the author of the deleted message
follow
User followed the channel. This event is not de-duplicated and therefore might be used to spam! (Only available when EventSub support is available!)
Fields:
channel
- The channel the event occurred infollowed_at
- Time object of the follow dateuser_id
- ID of the newly following useruser
- The login-name of the user who followed
giftpaidupgrade
User upgraded their gifted subscription into a paid one. This event does not contain any details about the tier of the paid subscription.
Fields:
channel
- The channel the event occurred ingifter
- The login-name of the user who gifted the subscriptionusername
- The login-name of the user who upgraded their subscription
join
User joined the channel-chat. This is NOT an indicator they are viewing, the event is NOT reliably sent when the user really joined the chat. The event will be sent with some delay after they join the chat and is sometimes repeated multiple times during their stay. So DO NOT use this to greet users!
Fields:
channel
- The channel the event occurred inuser
- The login-name of the user who joined
outbound_raid
The channel has raided another channel. (The event is issued in the moment the raid is executed, not when the raid timer starts!)
Fields:
channel
- The channel the raid originated atto
- The login-name of the channel the viewers are sent toto_id
- The ID of the channel the viewers are sent toviewers
- The number of viewers included in the raid
part
User left the channel-chat. This is NOT an indicator they are no longer viewing, the event is NOT reliably sent when the user really leaves the chat. The event will be sent with some delay after they leave the chat and is sometimes repeated multiple times during their stay. So this does NOT mean they do no longer read the chat!
Fields:
channel
- The channel the event occurred inuser
- The login-name of the user who left
permit
User received a permit, which means they are no longer affected by rules which are disabled on permit.
Fields:
channel
- The channel the event occurred inuser
- The login-name of the user who gave the permitto
- The username who got the permit
raid
The channel was raided by another user.
Fields:
channel
- The channel the event occurred inusername
- The login-name of the user who raided the channelviewercount
- The amount of users who have been raided (this number is not fully accurate)
resub
The user shared their resubscription. (This event is triggered manually by the user using the "Share my Resub" button and does not occur when the user does not actively share their sub!)
Fields:
channel
- The channel the event occurred inplan
- The sub-plan they are using (1000
= T1,2000
= T2,3000
= T3,Prime
)subscribed_months
- How long have they been subscribedusername
- The login-name of the user who resubscribed
stream_offline
The channels stream went offline. (This event has some delay to the real category change!)
Fields:
channel
- The channel the event occurred in
stream_online
The channels stream went offline. (This event has some delay to the real category change!)
Fields:
channel
- The channel the event occurred in
sub
The user newly subscribed on their own. (This event is triggered automatically and does not need to be shared actively!)
Fields:
channel
- The channel the event occurred inplan
- The sub-plan they are using (1000
= T1,2000
= T2,3000
= T3,Prime
)username
- The login-name of the user who subscribed
subgift
The user gifted the subscription to a specific user. (This event DOES occur multiple times after submysterygift
events!)
Fields:
channel
- The channel the event occurred ingifted_months
- Number of months the user giftedorigin_id
- ID unique to the gift-event (can be used to matchsubgift
events to correspondingsubmysterygift
event)plan
- The sub-plan they are using (1000
= T1,2000
= T2,3000
= T3,Prime
)subscribed_months
- How long the recipient has been subscribedto
- The user who received the subusername
- The login-name of the user who gifted the subscription
submysterygift
The user gifted multiple subs to the community. (This event is followed by number x subgift
events.)
Fields:
channel
- The channel the event occurred innumber
- The amount of gifted subsorigin_id
- ID unique to the gift-event (can be used to matchsubgift
events to correspondingsubmysterygift
event)plan
- The sub-plan they are using (1000
= T1,2000
= T2,3000
= T3,Prime
)username
- The login-name of the user who gifted the subscription
timeout
Moderator action caused a user to be timed out from chat.
Note: This event does not contain the acting user! You cannot use the {{.user}}
variable.
Fields:
channel
- The channel the event occurred induration
- The timeout duration (time.Duration
, nanoseconds)seconds
- The timeout duration (int
, seconds)target_id
- The ID of the user being timed outtarget_name
- The login-name of the user being timed out
title_update
The current title for the channel was changed. (This event has some delay to the real category change!)
Fields:
channel
- The channel the event occurred intitle
- The title of the stream
whisper
The bot received a whisper message. (You can use (.*)
as message match and {{ group 1 }}
as template to get the content of the whisper.)
Fields:
username
- The login-name of the user who sent the message