s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
IEvents
chevron_left
API Reference
interface
IEvents
Methods
functions
OnStreamGiftSubscribe
functions
OnStreamGiftSubscriptions
functions
OnStreamJoin
functions
OnStreamLeave
functions
OnStreamMessage
functions
OnStreamRaid
functions
OnStreamSubscribe
IEvents
Implement this on a <c>Component</c> to receive stream chat events. They're dispatched to the active scene on the main thread, so it's safe to touch GameObjects from these.
interface
Sandbox.Streamer
.
abstract
Sandbox.Engine
functions
Methods
7
OnStreamGiftSubscribe
(
message
)
A viewer gifted a subscription to a specific recipient.
OnStreamGiftSubscriptions
(
message
)
A viewer gifted a batch of subscriptions to the community (a mystery/community gift).
OnStreamJoin
(
viewer
)
A viewer joined chat.
OnStreamLeave
(
viewer
)
A viewer left chat. Note that Twitch sends leaves unreliably, so don't count on this firing.
OnStreamMessage
(
message
)
A chat message was received. Cheers arrive here too - check Sandbox.Streamer.ChatMessage.Bits.
OnStreamRaid
(
message
)
Another channel raided yours, bringing their viewers with them.
OnStreamSubscribe
(
message
)
A viewer subscribed or resubscribed to the channel.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.