Skip to main content

Reference

This page lists an overview of all the events and nodes exposed by TwiWorks, current as of the 2.0 release. It also includes a short description of what they do, as well as the OAuth scope(s) required for their usage. For more information on their usage, please refer to the built-in help text and/or the relevant documentation pages.

TwiWorks Events

NameScope(s)Feature ClassShort Description
OnMessageuser:read:chatCORETriggered when a new message is received
OnCheeruser:read:chatCORETriggered when a user cheers in chat
OnNewSubscriptionuser:read:chatCORETriggered when a user (re)subscribes to the channel or gifts a sub
OnRaiduser:read:chatCORETriggered when another channel raids the connected channel
OnPointsEventchannel:read:redemptionsChannel Point EventsTriggered when a user redeems a channel points reward
OnWhisperuser:read:whispersWhisper EventsTriggered when a user whispers you (the logged in user)
OnFollowmoderator:read:followersFollower EventsTriggered when a user starts following the connected channel
OnBanEventchannel:moderateBan EventsTriggered when a user gets (temporarily) banned
OnUnbanEventchannel:moderateBan EventsTriggered when a user gets unbanned

TwiWorks Nodes

TypeNameScope(s)Feature ClassShort Description
Async NodeGetTwitchUser-COREGets information about a Twitch user from their username
Async NodeConnect To Twitchuser:read:chat (+more depending on enabled features)COREEstablishes a connection to the Twitch chat, creates the core UtwitchChatConnector object
NodeSendTwitchMessageuser:write:chatCORESends a message to the chat
NodeDisconnectFromChat-CORECloses & cleans a given chat connection
Async NodeRefreshCredentials-BACKEND LOGINBackend login only – refreshes a user’s OAuth token (default access token expiry is ~3600s)
Async NodePerformTwitchLogin-BACKEND LOGINPerforms login using the login backend system
Async NodeGetChannelViewersmoderator:read:chattersMISCGets a list of (up to 50) logged-in viewers in chat.
Async NodeGetIsStreaming-MISCReturns whether or not the given channel is live
Async NodeGetIsSubscribeduser:read:subscriptionsMISCChecks if a given user is subscribed to the connected channel
Async NodeGetNumFollowersmoderator:read:followersMISCGets the number of followers the connected channel has
Async NodeSendAnnouncementmoderator:manage:announcementsMISCSends an announcement (/announce command in chat)
Async NodeSendWhisperuser:manage:whispersMISCSends a whisper to a given user. NOTE: delivery may be spotty depending on how Twitch’s spam prevention system is feeling
Async NodePerformLocalTwitchLogin-LOCAL LOGINPerforms login using the local login system
Async NodeGetEmoteTask-EMOTEGets the image (UTexture2D) associated with an emoticon
Async NodeGetTwitchEmoteSet-EMOTEGets information about a given Twitch emote set
NodeCreateTwitchCommand-COMMAND SYSTEMDynamically creates a new Twitch command
NodeUpdateTwitchCommand-COMMAND SYSTEMDynamically changes a Twitch command
NodeRemoveTwitchCommand-COMMAND SYSTEMRemoves a Twitch command
NodeGetRegisteredTwitchCommands-COMMAND SYSTEMLists all commands currently registered in the command system
NodeBindToTwitchCommand-COMMAND SYSTEMBinds a function to that gets triggered when a user runs the given command
NodeEnableSlowChatmoderator:manage:chat_settingsCHAT MODERATIONEnables slow mode
NodeDisableSlowChatmoderator:manage:chat_settingsCHAT MODERATIONDisables slow mode
NodeEnableEmoteChatmoderator:manage:chat_settingsCHAT MODERATIONEnables emote-only chat
NodeDisableEmoteChatmoderator:manage:chat_settingsCHAT MODERATIONDisables emote-only chat
NodeEnableR9KChatmoderator:manage:chat_settingsCHAT MODERATIONEnables R9K chat
NodeDisableR9KChatmoderator:manage:chat_settingsCHAT MODERATIONDisables R9K chat
NodeClearChatmoderator:manage:chat_settingsCHAT MODERATIONClears the chat history
NodeEnableFollowersOnlyChatmoderator:manage:chat_settingsCHAT MODERATIONEnables followers-only chat
NodeDisableFollowersOnlyChatmoderator:manage:chat_settingsCHAT MODERATIONDisables followers-only chat
NodeGetChatModes-CHAT MODERATIONReturns information on which chat modes are currently enables
Async NodeCreatePointsRewardchannel:manage:redemptionsCHANNEL POINTSDynamically creates a new channel points reward (associated with your App ID, so you have “full control” over it + its redemptions)
Async NodeDeletePointsRewardchannel:manage:redemptionsCHANNEL POINTSRemoves a channel points reward
Async NodeGetPointsRewardschannel:read:redemptions OR channel:manage:redemptionsCHANNEL POINTSGets information about a channel points reward
Async NodeGetRewardRedemptionschannel:read:redemptions OR channel:manage:redemptionsCHANNEL POINTSGets a list of (up to 50) redemptions for the given reward; listening for new redemptions using the OnPointsEvent is highly recommended over polling this function.
Async NodeSetPointsRewardEnabledchannel:manage:redemptionsCHANNEL POINTSEnables a channel points reward
Async NodeUpdatePointsRewardchannel:manage:redemptionsCHANNEL POINTSChanges the settings of a channel points reward
Async NodeUpdateRedemptionStatuschannel:manage:redemptionsCHANNEL POINTSChanges a redemption’s status (unfulfilled/fulfilled; used to keep track of which redemptions have been processed & granted)
Async NodeGetBadgeImage-BADGE SYSTEMGets a badge’s image
NodeGetBadgeIdentifier-BADGE SYSTEMGets the badge identifier for a badge that is unknown to TwiWorks (e.g. channel-specific, recently added, not documented, etc.)
NodeParmaBanTwitchUsermoderator:manage:banned_usersUSER MODERATIONPermanently bans a chatter
NodeTempBanTwitchUsermoderator:manage:banned_usersUSER MODERATIONTemporarily bans a chatter