backend for twitch chat widgets

This commit is contained in:
ari melody 2026-09-02 22:32:45 +01:00
parent 09c11f11a1
commit 28b9492cb3
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
11 changed files with 725 additions and 94 deletions

29
twitch/api/notice.go Normal file
View file

@ -0,0 +1,29 @@
package api
type ChatNoticeType string
const NOTICE_SUB ChatNoticeType = "sub"
const NOTICE_RESUB ChatNoticeType = "resub"
const NOTICE_SUB_GIFT ChatNoticeType = "sub_gift"
const NOTICE_COMMUNITY_SUB_GIFT ChatNoticeType = "community_sub_gift"
const NOTICE_GIFT_PAID_UPGRADE ChatNoticeType = "gift_paid_upgrade"
const NOTICE_PRIME_PAID_UPGRADE ChatNoticeType = "prime_paid_upgrade"
const NOTICE_RAID ChatNoticeType = "raid"
const NOTICE_UNRAID ChatNoticeType = "unraid"
const NOTICE_PAY_IT_FORWARD ChatNoticeType = "pay_it_forward"
const NOTICE_ANNOUNCEMENT ChatNoticeType = "announcement"
const NOTICE_BITS_BADGE_TIER ChatNoticeType = "bits_badge_tier"
const NOTICE_CHARITY_DONATION ChatNoticeType = "charity_donation"
const NOTICE_WATCH_STREAK ChatNoticeType = "watch_streak"
const NOTICE_MODIVERSARY ChatNoticeType = "modiversary"
const NOTICE_SHARED_CHAT_SUB ChatNoticeType = "shared_chat_sub"
const NOTICE_SHARED_CHAT_RESUB ChatNoticeType = "shared_chat_resub"
const NOTICE_SHARED_CHAT_SUB_GIFT ChatNoticeType = "shared_chat_sub_gift"
const NOTICE_SHARED_CHAT_COMMUNITY_SUB_GIFT ChatNoticeType = "shared_chat_community_sub_gift"
const NOTICE_SHARED_CHAT_GIFT_PAID_UPGRADE ChatNoticeType = "shared_chat_gift_paid_upgrade"
const NOTICE_SHARED_CHAT_PRIME_PAID_UPGRADE ChatNoticeType = "shared_chat_prime_paid_upgrade"
const NOTICE_SHARED_CHAT_RAID ChatNoticeType = "shared_chat_raid"
const NOTICE_SHARED_CHAT_PAY_IT_FORWARD ChatNoticeType = "shared_chat_pay_it_forward"
const NOTICE_SHARED_CHAT_ANNOUNCEMENT ChatNoticeType = "shared_chat_announcement"
const NOTICE_SHARED_CHAT_MODIVERSARY ChatNoticeType = "shared_chat_modiversary"
const NOTICE_UNKNOWN ChatNoticeType = "unknown"