FishriftDocs Dashboard

Events

Every follow, sub, tip and raid becomes one Fishrift event, whatever platform it came from. Custom widgets receive these objects.

The event object

FieldTypeNotes
idstringUnique per event. Stays the same when a platform sends it again
platformstringtwitch, kick, youtube, kofi or external
typestringSee the tables below
viewer_namestringLogin or handle. Empty for channel events like stream_online. On YouTube this is the channel ID
viewer_display_namestringDisplay name
amountnumberDepends on the type, see Amounts
messagestringThe viewer's message or the reward input
monthsnumberTotal months for resubs
tierstring1000, 2000 or 3000 on Twitch. On YouTube the membership level name
reward_titlestringChannel point reward name
reward_idstringChannel point reward ID
reward_costnumberChannel point reward cost
is_anonymousbooleanAnonymous gift subs and cheers
is_testbooleanTest events
alert_idstringSet when an Alert Box alert matched
rawobjectThe platform's original data
timestampnumberMilliseconds since 1970, when Fishrift received it

Example:

{
  "id": "tw_3f1c0b9a",
  "platform": "twitch",
  "type": "resub",
  "viewer_name": "fishfan",
  "viewer_display_name": "FishFan",
  "tier": "1000",
  "months": 14,
  "message": "Still here!",
  "raw": {},
  "timestamp": 1759600000000
}

Twitch

TypeFields
followViewer
subscribetier. Gifted subs also arrive per recipient with raw.is_gift: true
resubtier, months, message
gift_subtier, amount (number of subs), is_anonymous
bitsamount (bits), message, is_anonymous
raidamount (viewers). The viewer is the raiding channel
channel_pointsreward_title, reward_id, reward_cost, message (input)
hype_train_begin / hype_train_progressamount (level)
hype_train_end
poll_begin / poll_progress / poll_endDetails in raw
prediction_begin / prediction_endDetails in raw
charity_donationamount in cents
goal_begin / goal_progress / goal_endDetails in raw
shoutoutThe channel that was shouted out
ad_breakamount (seconds)
stream_online / stream_offline

Kick

TypeFields
followViewer
subscribemonths. Renewals also arrive as subscribe
gift_subamount (number of subs)
stream_online / stream_offline

YouTube

TypeFields
subscribeA new member. tier is the level name
resubA member milestone, with months and message
gift_subGifted memberships, amount is the count
superchatSuper Chats and Super Stickers. amount in micros, message

Ko-fi

TypeFields
kofi_donationamount, message
kofi_subscriptionamount, message
kofi_commissionamount
kofi_shop_orderamount

External donations

TypeFields
external_donationamount, message, raw.source_name, raw.currency

See External donations.

Amounts

Typeamount is
bitsBits
gift_subNumber of subs
raidViewers
hype_train_begin, hype_train_progressLevel
ad_breakSeconds
kofi_*, external_donationMoney in whole units, so 5.00 is 5
superchatMoney in micros: divide by 1,000,000
charity_donationMoney in cents: divide by 100