1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837
|
# Copyright (c) 2023. Lena "Teekeks" During <info@teawork.de>
"""
Objects used by EventSub
------------------------
"""
from twitchAPI.object.base import TwitchObject
from datetime import datetime
from typing import List, Optional
__all__ = ['ChannelPollBeginEvent', 'ChannelUpdateEvent', 'ChannelFollowEvent', 'ChannelSubscribeEvent', 'ChannelSubscriptionEndEvent',
'ChannelSubscriptionGiftEvent', 'ChannelSubscriptionMessageEvent', 'ChannelCheerEvent', 'ChannelRaidEvent', 'ChannelBanEvent',
'ChannelUnbanEvent', 'ChannelModeratorAddEvent', 'ChannelModeratorRemoveEvent', 'ChannelPointsCustomRewardAddEvent',
'ChannelPointsCustomRewardUpdateEvent', 'ChannelPointsCustomRewardRemoveEvent', 'ChannelPointsCustomRewardRedemptionAddEvent',
'ChannelPointsCustomRewardRedemptionUpdateEvent', 'ChannelPollProgressEvent', 'ChannelPollEndEvent', 'ChannelPredictionEvent',
'ChannelPredictionEndEvent', 'DropEntitlementGrantEvent', 'ExtensionBitsTransactionCreateEvent', 'GoalEvent', 'HypeTrainEvent',
'HypeTrainEndEvent', 'StreamOnlineEvent', 'StreamOfflineEvent', 'UserAuthorizationGrantEvent', 'UserAuthorizationRevokeEvent',
'UserUpdateEvent', 'ShieldModeEvent', 'CharityCampaignStartEvent', 'CharityCampaignProgressEvent', 'CharityCampaignStopEvent',
'CharityDonationEvent', 'ChannelShoutoutCreateEvent', 'ChannelShoutoutReceiveEvent', 'ChannelChatClearEvent',
'ChannelChatClearUserMessagesEvent', 'ChannelChatMessageDeleteEvent', 'ChannelChatNotificationEvent', 'ChannelAdBreakBeginEvent',
'ChannelChatMessageEvent', 'ChannelChatSettingsUpdateEvent', 'UserWhisperMessageEvent', 'ChannelPointsAutomaticRewardRedemptionAddEvent',
'ChannelPointsAutomaticRewardRedemptionAdd2Event',
'ChannelVIPAddEvent', 'ChannelVIPRemoveEvent', 'ChannelUnbanRequestCreateEvent', 'ChannelUnbanRequestResolveEvent',
'ChannelSuspiciousUserMessageEvent', 'ChannelSuspiciousUserUpdateEvent', 'ChannelModerateEvent', 'ChannelWarningAcknowledgeEvent',
'ChannelWarningSendEvent', 'AutomodMessageHoldEvent', 'AutomodMessageUpdateEvent', 'AutomodSettingsUpdateEvent',
'AutomodTermsUpdateEvent', 'ChannelChatUserMessageHoldEvent', 'ChannelChatUserMessageUpdateEvent', 'ChannelSharedChatBeginEvent',
'ChannelSharedChatUpdateEvent', 'ChannelSharedChatEndEvent', 'ChannelBitsUseEvent',
'Subscription', 'MessageMetadata', 'ChannelPollBeginData', 'PollChoice', 'BitsVoting', 'ChannelPointsVoting', 'ChannelUpdateData', 'ChannelFollowData',
'ChannelSubscribeData', 'ChannelSubscriptionEndData', 'ChannelSubscriptionGiftData', 'ChannelSubscriptionMessageData',
'SubscriptionMessage', 'Emote', 'ChannelCheerData', 'ChannelRaidData', 'ChannelBanData', 'ChannelUnbanData', 'ChannelModeratorAddData',
'ChannelModeratorRemoveData', 'ChannelPointsCustomRewardData', 'GlobalCooldown', 'Image', 'MaxPerStream', 'MaxPerUserPerStream',
'ChannelPointsCustomRewardRedemptionData', 'Reward', 'ChannelPollProgressData', 'ChannelPollEndData', 'ChannelPredictionData', 'Outcome',
'TopPredictors', 'ChannelPredictionEndData', 'DropEntitlementGrantData', 'Entitlement', 'Product', 'ExtensionBitsTransactionCreateData',
'GoalData', 'TopContribution', 'LastContribution', 'HypeTrainData', 'HypeTrainEndData', 'StreamOnlineData', 'StreamOfflineData',
'UserAuthorizationGrantData', 'UserAuthorizationRevokeData', 'UserUpdateData', 'ShieldModeData', 'Amount', 'CharityCampaignStartData',
'CharityCampaignStopData', 'CharityCampaignProgressData', 'CharityDonationData', 'ChannelShoutoutCreateData', 'ChannelShoutoutReceiveData',
'ChannelChatClearData', 'ChannelChatClearUserMessagesData', 'ChannelChatMessageDeleteData', 'Badge', 'MessageFragmentCheermote',
'MessageFragmentEmote', 'MessageFragmentMention', 'MessageFragment', 'Message', 'AnnouncementNoticeMetadata',
'CharityDonationNoticeMetadata', 'BitsBadgeTierNoticeMetadata', 'SubNoticeMetadata', 'RaidNoticeMetadata', 'ResubNoticeMetadata',
'UnraidNoticeMetadata', 'SubGiftNoticeMetadata', 'CommunitySubGiftNoticeMetadata', 'GiftPaidUpgradeNoticeMetadata',
'PrimePaidUpgradeNoticeMetadata', 'PayItForwardNoticeMetadata', 'ChannelChatNotificationData', 'ChannelAdBreakBeginData',
'ChannelChatMessageData', 'ChatMessage', 'ChatMessageBadge', 'ChatMessageFragment', 'ChatMessageFragmentCheermoteMetadata',
'ChatMessageFragmentMentionMetadata', 'ChatMessageReplyMetadata', 'ChatMessageCheerMetadata', 'ChatMessageFragmentEmoteMetadata',
'ChannelChatSettingsUpdateData', 'WhisperInformation', 'UserWhisperMessageData', 'AutomaticReward', 'RewardMessage', 'RewardEmote',
'ChannelPointsAutomaticRewardRedemptionAddData', 'ChannelPointsAutomaticRewardRedemptionAdd2Data', 'ChannelVIPAddData', 'ChannelVIPRemoveData',
'ChannelUnbanRequestCreateData', 'AutomaticReward2',
'ChannelUnbanRequestResolveData', 'MessageWithID', 'ChannelSuspiciousUserMessageData', 'ChannelSuspiciousUserUpdateData',
'ModerateMetadataSlow', 'ModerateMetadataWarn', 'ModerateMetadataDelete', 'ModerateMetadataTimeout', 'ModerateMetadataUnmod',
'ModerateMetadataUnvip', 'ModerateMetadataUntimeout', 'ModerateMetadataUnraid', 'ModerateMetadataUnban', 'ModerateMetadataUnbanRequest',
'ModerateMetadataAutomodTerms', 'ModerateMetadataBan', 'ModerateMetadataMod', 'ModerateMetadataVip', 'ModerateMetadataRaid',
'ModerateMetadataFollowers', 'ChannelModerateData', 'ChannelWarningAcknowledgeData', 'ChannelWarningSendData', 'AutomodMessageHoldData',
'AutomodMessageUpdateData', 'AutomodSettingsUpdateData', 'AutomodTermsUpdateData', 'ChannelChatUserMessageHoldData', 'ChannelChatUserMessageUpdateData',
'SharedChatParticipant', 'ChannelSharedChatBeginData', 'ChannelSharedChatUpdateData', 'ChannelSharedChatEndData', 'PowerUpEmote', 'PowerUp',
'ChannelBitsUseData']
# Event Data
class Subscription(TwitchObject):
condition: dict
cost: int
created_at: datetime
id: str
status: str
transport: dict
type: str
version: str
class MessageMetadata(TwitchObject):
message_id: str
"""An ID that uniquely identifies the message.
Twitch sends messages at least once, but if Twitch is unsure of whether you received a notification, it’ll resend the message.
This means you may receive a notification twice. If Twitch resends the message, the message ID will be the same."""
message_type: str
"""The type of message, which is set to notification."""
message_timestamp: datetime
"""The timestamp that the message was sent."""
subscription_type: str
"""The type of event sent in the message."""
subscription_version: str
"""The version number of the subscription type’s definition. This is the same value specified in the subscription request."""
class PollChoice(TwitchObject):
id: str
"""ID for the choice"""
title: str
"""Text displayed for the choice"""
bits_votes: int
"""Not used; will be stet to 0"""
channel_points_votes: int
"""Number of votes received via Channel Points"""
votes: int
"""Total number of votes received for the choice across all methods of voting"""
class BitsVoting(TwitchObject):
is_enabled: bool
"""Not used; will be set to False"""
amount_per_vote: int
"""Not used; will be set to 0"""
class ChannelPointsVoting(TwitchObject):
is_enabled: bool
"""Indicates if Channel Points can be used for Voting"""
amount_per_vote: int
"""Number of Channel Points required to vote once with Channel Points"""
class ChannelPollBeginData(TwitchObject):
id: str
"""ID of the poll"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
title: str
"""Question displayed for the poll"""
choices: List[PollChoice]
"""Array of choices for the poll"""
bits_voting: BitsVoting
"""Not supported"""
channel_points_voting: ChannelPointsVoting
"""The Channel Points voting settings for the Poll"""
started_at: datetime
"""The time the poll started"""
ends_at: datetime
"""The time the poll will end"""
class ChannelUpdateData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster’s user ID"""
broadcaster_user_login: str
"""The broadcaster’s user login"""
broadcaster_user_name: str
"""The broadcaster’s user display name"""
title: str
"""The channel’s stream title"""
language: str
"""The channel’s broadcast language"""
category_id: str
"""The channel´s category ID"""
category_name: str
"""The category name"""
content_classification_labels: List[str]
"""Array of classification label IDs currently applied to the Channel"""
class ChannelFollowData(TwitchObject):
user_id: str
"""The user ID for the user now following the specified channel"""
user_login: str
"""The user login for the user now following the specified channel"""
user_name: str
"""The user display name for the user now following the specified channel"""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
followed_at: datetime
"""when the follow occurred"""
class ChannelSubscribeData(TwitchObject):
user_id: str
"""The user ID for the user who subscribed to the specified channel"""
user_login: str
"""The user login for the user who subscribed to the specified channel"""
user_name: str
"""The user display name for the user who subscribed to the specified channel"""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
tier: str
"""The tier of the subscription. Valid values are 1000, 2000, and 3000"""
is_gift: bool
"""Whether the subscription is a gift"""
class ChannelSubscriptionEndData(TwitchObject):
user_id: str
"""The user ID for the user whose subscription ended"""
user_login: str
"""The user login for the user whose subscription ended"""
user_name: str
"""The user display name for the user whose subscription ended"""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
tier: str
"""The tier of the subscription that ended. Valid values are 1000, 2000, and 3000"""
is_gift: bool
"""Whether the subscription was a gift"""
class ChannelSubscriptionGiftData(TwitchObject):
user_id: Optional[str]
"""The user ID for the user who sent the subscription gift. None if it was an anonymous subscription gift."""
user_login: Optional[str]
"""The user login for the user who sent the subscription gift. None if it was an anonymous subscription gift."""
user_name: Optional[str]
"""The user display name for the user who sent the subscription gift. None if it was an anonymous subscription gift."""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
total: int
"""The number of subscriptions in the subscription gift"""
tier: str
"""The tier of the subscription that ended. Valid values are 1000, 2000, and 3000"""
cumulative_total: Optional[int]
"""The number of subscriptions gifted by this user in the channel.
None for anonymous gifts or if the gifter has opted out of sharing this information"""
is_anonymous: bool
"""Whether the subscription gift was anonymous"""
class Emote(TwitchObject):
begin: int
"""The index of where the Emote starts in the text"""
end: int
"""The index of where the Emote ends in the text"""
id: str
"""The emote ID"""
class SubscriptionMessage(TwitchObject):
text: str
"""the text of the resubscription chat message"""
emotes: List[Emote]
"""An array that includes the emote ID and start and end positions for where the emote appears in the text"""
class ChannelSubscriptionMessageData(TwitchObject):
user_id: str
"""The user ID for the user who sent a resubscription chat message"""
user_login: str
"""The user login for the user who sent a resubscription chat message"""
user_name: str
"""The user display name for the user who sent a resubscription chat message"""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
tier: str
"""The tier of the user´s subscription"""
message: SubscriptionMessage
"""An object that contains the resubscription message and emote information needed to recreate the message."""
cumulative_months: Optional[int]
"""The number of consecutive months the user’s current subscription has been active.
None if the user has opted out of sharing this information."""
duration_months: int
"""The month duration of the subscription"""
class ChannelCheerData(TwitchObject):
is_anonymous: bool
"""Whether the user cheered anonymously or not"""
user_id: Optional[str]
"""The user ID for the user who cheered on the specified channel. None if is_anonymous is True."""
user_login: Optional[str]
"""The user login for the user who cheered on the specified channel. None if is_anonymous is True."""
user_name: Optional[str]
"""The user display name for the user who cheered on the specified channel. None if is_anonymous is True."""
broadcaster_user_id: str
"""The requested broadcaster’s user ID"""
broadcaster_user_login: str
"""The requested broadcaster’s user login"""
broadcaster_user_name: str
"""The requested broadcaster’s user display name"""
message: str
"""The message sent with the cheer"""
bits: int
"""The number of bits cheered"""
class ChannelRaidData(TwitchObject):
from_broadcaster_user_id: str
"""The broadcaster id that created the raid"""
from_broadcaster_user_login: str
"""The broadcaster login that created the raid"""
from_broadcaster_user_name: str
"""The broadcaster display name that created the raid"""
to_broadcaster_user_id: str
"""The broadcaster id that received the raid"""
to_broadcaster_user_login: str
"""The broadcaster login that received the raid"""
to_broadcaster_user_name: str
"""The broadcaster display name that received the raid"""
viewers: int
"""The number of viewers in the raid"""
class ChannelBanData(TwitchObject):
user_id: str
"""The user ID for the user who was banned on the specified channel"""
user_login: str
"""The user login for the user who was banned on the specified channel"""
user_name: str
"""The user display name for the user who was banned on the specified channel"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
moderator_user_id: str
"""The user ID of the issuer of the ban"""
moderator_user_login: str
"""The user login of the issuer of the ban"""
moderator_user_name: str
"""The user display name of the issuer of the ban"""
reason: str
"""The reason behind the ban"""
banned_at: datetime
"""The timestamp of when the user was banned or put in a timeout"""
ends_at: Optional[datetime]
"""The timestamp of when the timeout ends. None if the user was banned instead of put in a timeout."""
is_permanent: bool
"""Indicates whether the ban is permanent (True) or a timeout (False). If True, ends_at will be None."""
class ChannelUnbanData(TwitchObject):
user_id: str
"""The user ID for the user who was unbanned on the specified channel"""
user_login: str
"""The user login for the user who was unbanned on the specified channel"""
user_name: str
"""The user display name for the user who was unbanned on the specified channel"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
moderator_user_id: str
"""The user ID of the issuer of the unban"""
moderator_user_login: str
"""The user login of the issuer of the unban"""
moderator_user_name: str
"""The user display name of the issuer of the unban"""
class ChannelModeratorAddData(TwitchObject):
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
user_id: str
"""The user ID of the new moderator"""
user_login: str
"""The user login of the new moderator"""
user_name: str
"""The user display name of the new moderator"""
class ChannelModeratorRemoveData(TwitchObject):
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
user_id: str
"""The user ID of the removed moderator"""
user_login: str
"""The user login of the removed moderator"""
user_name: str
"""The user display name of the removed moderator"""
class MaxPerStream(TwitchObject):
is_enabled: bool
"""Is the setting enabled"""
value: int
"""The max per stream limit"""
class MaxPerUserPerStream(TwitchObject):
is_enabled: bool
"""Is the setting enabled"""
value: int
"""The max per user per stream limit"""
class Image(TwitchObject):
url_1x: str
"""URL for the image at 1x size"""
url_2x: str
"""URL for the image at 2x size"""
url_4x: str
"""URL for the image at 4x size"""
class GlobalCooldown(TwitchObject):
is_enabled: bool
"""Is the setting enabled"""
seconds: int
"""The cooldown in seconds"""
class ChannelPointsCustomRewardData(TwitchObject):
id: str
"""The reward identifier"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
is_enabled: bool
"""Is the reward currently enabled. If False, the reward won't show up to viewers."""
is_paused: bool
"""Is the reward currently paused. If True, viewers can't redeem."""
is_in_stock: bool
"""Is the reward currently in stock. If False, viewers can't redeem."""
title: str
"""The reward title"""
cost: int
"""The reward cost"""
prompt: str
"""The reward description"""
is_user_input_required: bool
"""Does the viewer need to enter information when redeeming the reward"""
should_redemptions_skip_request_queue: bool
"""Should redemptions be set to :code:`fulfilled` status immediately when redeemed and skip the request queue instead of the normal
:code:`unfulfilled` status."""
max_per_stream: MaxPerStream
"""Whether a maximum per stream is enabled and what the maximum is"""
max_per_user_per_stream: MaxPerUserPerStream
"""Whether a maximum per user per stream is enabled and what the maximum is"""
background_color: str
"""Custom background color for the reward. Format: Hex with # prefix."""
image: Optional[Image]
"""Set of custom images for the reward. None if no images have been uploaded"""
default_image: Image
"""Set of default images for the reward"""
global_cooldown: GlobalCooldown
"""Whether a cooldown is enabled and what the cooldown is in seconds"""
cooldown_expires_at: Optional[datetime]
"""Timestamp of the cooldown expiration. None if the reward is not on cooldown."""
redemptions_redeemed_current_stream: Optional[int]
"""The number of redemptions redeemed during the current live stream. Counts against the max_per_stream limit.
None if the broadcasters stream is not live or max_per_stream is not enabled."""
class Reward(TwitchObject):
id: str
"""The reward identifier"""
title: str
"""The reward name"""
cost: int
"""The reward cost"""
prompt: str
"""The reward description"""
class ChannelPointsCustomRewardRedemptionData(TwitchObject):
id: str
"""The redemption identifier"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
user_id: str
"""User ID of the user the redeemed the reward"""
user_login: str
"""Login of the user the redeemed the reward"""
user_name: str
"""Display name of the user the redeemed the reward"""
user_input: str
"""The user input provided. Empty if not provided."""
status: str
"""Defaults to :code:`unfulfilled`. Possible values are: :code:`unknown`, :code:`unfulfilled`, :code:`fulfilled` and :code:`canceled`"""
reward: Reward
"""Basic information about the reward that was redeemed, at the time it was redeemed"""
redeemed_at: datetime
"""Timestamp of when the reward was redeemed"""
class ChannelPollProgressData(TwitchObject):
id: str
"""ID of the poll"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
title: str
"""Question displayed for the poll"""
choices: List[PollChoice]
"""An array of choices for the poll. Includes vote counts."""
bits_voting: BitsVoting
"""not supported"""
channel_points_voting: ChannelPointsVoting
"""The Channel Points voting settings for the poll"""
started_at: datetime
"""The time the poll started"""
ends_at: datetime
"""The time the poll will end"""
class ChannelPollEndData(TwitchObject):
id: str
"""ID of the poll"""
broadcaster_user_id: str
"""The requested broadcaster ID"""
broadcaster_user_login: str
"""The requested broadcaster login"""
broadcaster_user_name: str
"""The requested broadcaster display name"""
title: str
"""Question displayed for the poll"""
choices: List[PollChoice]
"""An array of choices for the poll. Includes vote counts."""
bits_voting: BitsVoting
"""not supported"""
channel_points_voting: ChannelPointsVoting
"""The Channel Points voting settings for the poll"""
status: str
"""The status of the poll. Valid values are completed, archived and terminated."""
started_at: datetime
"""The time the poll started"""
ended_at: datetime
"""The time the poll ended"""
class TopPredictors(TwitchObject):
user_id: str
"""The ID of the user."""
user_login: str
"""The login of the user."""
user_name: str
"""The display name of the user."""
channel_points_won: int
"""The number of Channel Points won. This value is always null in the event payload for Prediction progress and Prediction lock. This value is 0
if the outcome did not win or if the Prediction was canceled and Channel Points were refunded."""
channel_points_used: int
"""The number of Channel Points used to participate in the Prediction."""
class Outcome(TwitchObject):
id: str
"""The outcome ID."""
title: str
"""The outcome title."""
color: str
"""The color for the outcome. Valid values are pink and blue."""
users: int
"""The number of users who used Channel Points on this outcome."""
channel_points: int
"""The total number of Channel Points used on this outcome."""
top_predictors: List[TopPredictors]
"""An array of users who used the most Channel Points on this outcome."""
class ChannelPredictionData(TwitchObject):
id: str
"""Channel Points Prediction ID."""
broadcaster_user_id: str
"""The requested broadcaster ID."""
broadcaster_user_login: str
"""The requested broadcaster login."""
broadcaster_user_name: str
"""The requested broadcaster display name."""
title: str
"""Title for the Channel Points Prediction."""
outcomes: List[Outcome]
"""An array of outcomes for the Channel Points Prediction."""
started_at: datetime
"""The time the Channel Points Prediction started."""
locks_at: datetime
"""The time the Channel Points Prediction will automatically lock."""
class ChannelPredictionEndData(TwitchObject):
id: str
"""Channel Points Prediction ID."""
broadcaster_user_id: str
"""The requested broadcaster ID."""
broadcaster_user_login: str
"""The requested broadcaster login."""
broadcaster_user_name: str
"""The requested broadcaster display name."""
title: str
"""Title for the Channel Points Prediction."""
winning_outcome_id: str
"""ID of the winning outcome."""
outcomes: List[Outcome]
"""An array of outcomes for the Channel Points Prediction. Includes top_predictors."""
status: str
"""The status of the Channel Points Prediction. Valid values are resolved and canceled."""
started_at: datetime
"""The time the Channel Points Prediction started."""
ended_at: datetime
"""The time the Channel Points Prediction ended."""
class Entitlement(TwitchObject):
organization_id: str
"""The ID of the organization that owns the game that has Drops enabled."""
category_id: str
"""Twitch category ID of the game that was being played when this benefit was entitled."""
category_name: str
"""The category name."""
campaign_id: str
"""The campaign this entitlement is associated with."""
user_id: str
"""Twitch user ID of the user who was granted the entitlement."""
user_name: str
"""The user display name of the user who was granted the entitlement."""
user_login: str
"""The user login of the user who was granted the entitlement."""
entitlement_id: str
"""Unique identifier of the entitlement. Use this to de-duplicate entitlements."""
benefit_id: str
"""Identifier of the Benefit."""
created_at: datetime
"""UTC timestamp in ISO format when this entitlement was granted on Twitch."""
class DropEntitlementGrantData(TwitchObject):
id: str
"""Individual event ID, as assigned by EventSub. Use this for de-duplicating messages."""
data: Entitlement
"""Entitlement object"""
class Product(TwitchObject):
name: str
"""Product name."""
bits: int
"""Bits involved in the transaction."""
sku: str
"""Unique identifier for the product acquired."""
in_development: bool
"""Flag indicating if the product is in development. If in_development is true, bits will be 0."""
class ExtensionBitsTransactionCreateData(TwitchObject):
extension_client_id: str
"""Client ID of the extension."""
id: str
"""Transaction ID."""
broadcaster_user_id: str
"""The transaction’s broadcaster ID."""
broadcaster_user_login: str
"""The transaction’s broadcaster login."""
broadcaster_user_name: str
"""The transaction’s broadcaster display name."""
user_id: str
"""The transaction’s user ID."""
user_login: str
"""The transaction’s user login."""
user_name: str
"""The transaction’s user display name."""
product: Product
"""Additional extension product information."""
class GoalData(TwitchObject):
id: str
"""An ID that identifies this event."""
broadcaster_user_id: str
"""An ID that uniquely identifies the broadcaster."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
broadcaster_user_login: str
"""The broadcaster’s user handle."""
type: str
"""The type of goal. Possible values are:
- follow — The goal is to increase followers.
- subscription — The goal is to increase subscriptions. This type shows the net increase or decrease in tier points associated with the
subscriptions.
- subscription_count — The goal is to increase subscriptions. This type shows the net increase or decrease in the number of subscriptions.
- new_subscription — The goal is to increase subscriptions. This type shows only the net increase in tier points associated with the subscriptions
(it does not account for users that unsubscribed since the goal started).
- new_subscription_count — The goal is to increase subscriptions. This type shows only the net increase in the number of subscriptions
(it does not account for users that unsubscribed since the goal started).
"""
description: str
"""A description of the goal, if specified. The description may contain a maximum of 40 characters."""
is_achieved: Optional[bool]
"""A Boolean value that indicates whether the broadcaster achieved their goal. Is true if the goal was achieved; otherwise, false.
Only the channel.goal.end event includes this field."""
current_amount: int
"""The goals current value. The goals type determines how this value is increased or decreased
- If type is follow, this field is set to the broadcaster's current number of followers. This number increases with new followers and decreases
when users unfollow the broadcaster.
- If type is subscription, this field is increased and decreased by the points value associated with the subscription tier. For example, if a
tier-two subscription is worth 2 points, this field is increased or decreased by 2, not 1.
- If type is subscription_count, this field is increased by 1 for each new subscription and decreased by 1 for each user that unsubscribes.
- If type is new_subscription, this field is increased by the points value associated with the subscription tier. For example, if a tier-two
subscription is worth 2 points, this field is increased by 2, not 1.
- If type is new_subscription_count, this field is increased by 1 for each new subscription.
"""
target_amount: int
"""The goal’s target value. For example, if the broadcaster has 200 followers before creating the goal, and their goal is to double that number,
this field is set to 400."""
started_at: datetime
"""The timestamp which indicates when the broadcaster created the goal."""
ended_at: Optional[datetime]
"""The timestamp which indicates when the broadcaster ended the goal. Only the channel.goal.end event includes this field."""
class TopContribution(TwitchObject):
user_id: str
"""The ID of the user that made the contribution."""
user_login: str
"""The user’s login name."""
user_name: str
"""The user’s display name."""
type: str
"""The contribution method used. Possible values are:
- bits — Cheering with Bits.
- subscription — Subscription activity like subscribing or gifting subscriptions.
- other — Covers other contribution methods not listed.
"""
total: int
"""The total amount contributed. If type is bits, total represents the amount of Bits used. If type is subscription, total is 500, 1000, or 2500
to represent tier 1, 2, or 3 subscriptions, respectively."""
class LastContribution(TwitchObject):
user_id: str
"""The ID of the user that made the contribution."""
user_login: str
"""The user’s login name."""
user_name: str
"""The user’s display name."""
type: str
"""The contribution method used. Possible values are:
- bits — Cheering with Bits.
- subscription — Subscription activity like subscribing or gifting subscriptions.
- other — Covers other contribution methods not listed.
"""
total: int
"""The total amount contributed. If type is bits, total represents the amount of Bits used. If type is subscription, total is 500, 1000, or 2500
to represent tier 1, 2, or 3 subscriptions, respectively."""
class HypeTrainData(TwitchObject):
id: str
"""The Hype Train ID."""
broadcaster_user_id: str
"""The requested broadcaster ID."""
broadcaster_user_login: str
"""The requested broadcaster login."""
broadcaster_user_name: str
"""The requested broadcaster display name."""
total: int
"""Total points contributed to the Hype Train."""
progress: int
"""The number of points contributed to the Hype Train at the current level."""
goal: int
"""The number of points required to reach the next level."""
top_contributions: List[TopContribution]
"""The contributors with the most points contributed."""
last_contribution: LastContribution
"""The most recent contribution."""
level: int
"""The starting level of the Hype Train."""
started_at: datetime
"""The time when the Hype Train started."""
expires_at: datetime
"""The time when the Hype Train expires. The expiration is extended when the Hype Train reaches a new level."""
is_golden_kappa_train: bool
"""Indicates if the Hype Train is a Golden Kappa Train."""
class HypeTrainEndData(TwitchObject):
id: str
"""The Hype Train ID."""
broadcaster_user_id: str
"""The requested broadcaster ID."""
broadcaster_user_login: str
"""The requested broadcaster login."""
broadcaster_user_name: str
"""The requested broadcaster display name."""
level: int
"""The final level of the Hype Train."""
total: int
"""Total points contributed to the Hype Train."""
top_contributions: List[TopContribution]
"""The contributors with the most points contributed."""
started_at: datetime
"""The time when the Hype Train started."""
ended_at: datetime
"""The time when the Hype Train ended."""
cooldown_ends_at: datetime
"""The time when the Hype Train cooldown ends so that the next Hype Train can start."""
is_golden_kappa_train: bool
"""Indicates if the Hype Train is a Golden Kappa Train."""
class StreamOnlineData(TwitchObject):
id: str
"""The id of the stream."""
broadcaster_user_id: str
"""The broadcaster’s user id."""
broadcaster_user_login: str
"""The broadcaster’s user login."""
broadcaster_user_name: str
"""The broadcaster’s user display name."""
type: str
"""The stream type. Valid values are: live, playlist, watch_party, premiere, rerun."""
started_at: datetime
"""The timestamp at which the stream went online at."""
class StreamOfflineData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster’s user id."""
broadcaster_user_login: str
"""The broadcaster’s user login."""
broadcaster_user_name: str
"""The broadcaster’s user display name."""
class UserAuthorizationGrantData(TwitchObject):
client_id: str
"""The client_id of the application that was granted user access."""
user_id: str
"""The user id for the user who has granted authorization for your client id."""
user_login: str
"""The user login for the user who has granted authorization for your client id."""
user_name: str
"""The user display name for the user who has granted authorization for your client id."""
class UserAuthorizationRevokeData(TwitchObject):
client_id: str
"""The client_id of the application with revoked user access."""
user_id: str
"""The user id for the user who has revoked authorization for your client id."""
user_login: str
"""The user login for the user who has revoked authorization for your client id. This is null if the user no longer exists."""
user_name: str
"""The user display name for the user who has revoked authorization for your client id. This is null if the user no longer exists."""
class UserUpdateData(TwitchObject):
user_id: str
"""The user’s user id."""
user_login: str
"""The user’s user login."""
user_name: str
"""The user’s user display name."""
email: str
"""The user’s email address. The event includes the user’s email address only if the app used to request this event type includes the
user:read:email scope for the user; otherwise, the field is set to an empty string. See Create EventSub Subscription."""
email_verified: bool
"""A Boolean value that determines whether Twitch has verified the user’s email address. Is true if Twitch has verified the email address;
otherwise, false.
NOTE: Ignore this field if the email field contains an empty string."""
class ShieldModeData(TwitchObject):
broadcaster_user_id: str
"""An ID that identifies the broadcaster whose Shield Mode status was updated."""
broadcaster_user_login: str
"""The broadcaster’s login name."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
moderator_user_id: str
"""An ID that identifies the moderator that updated the Shield Mode’s status. If the broadcaster updated the status, this ID will be the same
as broadcaster_user_id."""
moderator_user_login: str
"""The moderator’s login name."""
moderator_user_name: str
"""The moderator’s display name."""
started_at: datetime
"""The timestamp of when the moderator activated Shield Mode. The object includes this field only for channel.shield_mode.begin events."""
ended_at: datetime
"""The timestamp of when the moderator deactivated Shield Mode. The object includes this field only for channel.shield_mode.end events."""
class Amount(TwitchObject):
value: int
"""The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount
is $5.50 USD, value is set to 550."""
decimal_places: int
"""The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor
units to major units by using the formula: value / 10^decimal_places"""
currency: str
"""The ISO-4217 three-letter currency code that identifies the type of currency in value."""
class CharityCampaignStartData(TwitchObject):
id: str
"""An ID that identifies the charity campaign."""
broadcaster_id: str
"""An ID that identifies the broadcaster that’s running the campaign."""
broadcaster_login: str
"""The broadcaster’s login name."""
broadcaster_name: str
"""The broadcaster’s display name."""
charity_name: str
"""The charity’s name."""
charity_description: str
"""A description of the charity."""
charity_logo: str
"""A URL to an image of the charity’s logo. The image’s type is PNG and its size is 100px X 100px."""
charity_website: str
"""A URL to the charity’s website."""
current_amount: Amount
"""Contains the current amount of donations that the campaign has received."""
target_amount: Amount
"""Contains the campaign’s target fundraising goal."""
started_at: datetime
"""The timestamp of when the broadcaster started the campaign."""
class CharityCampaignProgressData(TwitchObject):
id: str
"""An ID that identifies the charity campaign."""
broadcaster_id: str
"""An ID that identifies the broadcaster that’s running the campaign."""
broadcaster_login: str
"""The broadcaster’s login name."""
broadcaster_name: str
"""The broadcaster’s display name."""
charity_name: str
"""The charity’s name."""
charity_description: str
"""A description of the charity."""
charity_logo: str
"""A URL to an image of the charity’s logo. The image’s type is PNG and its size is 100px X 100px."""
charity_website: str
"""A URL to the charity’s website."""
current_amount: Amount
"""Contains the current amount of donations that the campaign has received."""
target_amount: Amount
"""Contains the campaign’s target fundraising goal."""
class CharityCampaignStopData(TwitchObject):
id: str
"""An ID that identifies the charity campaign."""
broadcaster_id: str
"""An ID that identifies the broadcaster that ran the campaign."""
broadcaster_login: str
"""The broadcaster’s login name."""
broadcaster_name: str
"""The broadcaster’s display name."""
charity_name: str
"""The charity’s name."""
charity_description: str
"""A description of the charity."""
charity_logo: str
"""A URL to an image of the charity’s logo. The image’s type is PNG and its size is 100px X 100px."""
charity_website: str
"""A URL to the charity’s website."""
current_amount: Amount
"""Contains the final amount of donations that the campaign received."""
target_amount: Amount
"""Contains the campaign’s target fundraising goal."""
stopped_at: datetime
"""The timestamp of when the broadcaster stopped the campaign."""
class CharityDonationData(TwitchObject):
id: str
"""An ID that identifies the donation. The ID is unique across campaigns."""
campaign_id: str
"""An ID that identifies the charity campaign."""
broadcaster_id: str
"""An ID that identifies the broadcaster that’s running the campaign."""
broadcaster_login: str
"""The broadcaster’s login name."""
broadcaster_name: str
"""The broadcaster’s display name."""
user_id: str
"""An ID that identifies the user that donated to the campaign."""
user_login: str
"""The user’s login name."""
user_name: str
"""The user’s display name."""
charity_name: str
"""The charity’s name."""
charity_description: str
"""A description of the charity."""
charity_logo: str
"""A URL to an image of the charity’s logo. The image’s type is PNG and its size is 100px X 100px."""
charity_website: str
"""A URL to the charity’s website."""
amount: Amount
"""Contains the amount of money that the user donated."""
class ChannelShoutoutCreateData(TwitchObject):
broadcaster_user_id: str
"""An ID that identifies the broadcaster that sent the Shoutout."""
broadcaster_user_login: str
"""The broadcaster’s login name."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
to_broadcaster_user_id: str
"""An ID that identifies the broadcaster that received the Shoutout."""
to_broadcaster_user_login: str
"""The broadcaster’s login name."""
to_broadcaster_user_name: str
"""The broadcaster’s display name."""
moderator_user_id: str
"""An ID that identifies the moderator that sent the Shoutout. If the broadcaster sent the Shoutout, this ID is the same as the ID in
broadcaster_user_id."""
moderator_user_login: str
"""The moderator’s login name."""
moderator_user_name: str
"""The moderator’s display name."""
viewer_count: int
"""The number of users that were watching the broadcaster’s stream at the time of the Shoutout."""
started_at: datetime
"""The timestamp of when the moderator sent the Shoutout."""
cooldown_ends_at: datetime
"""The timestamp of when the broadcaster may send a Shoutout to a different broadcaster."""
target_cooldown_ends_at: datetime
"""The timestamp of when the broadcaster may send another Shoutout to the broadcaster in to_broadcaster_user_id."""
class ChannelShoutoutReceiveData(TwitchObject):
broadcaster_user_id: str
"""An ID that identifies the broadcaster that received the Shoutout."""
broadcaster_user_login: str
"""The broadcaster’s login name."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
from_broadcaster_user_id: str
"""An ID that identifies the broadcaster that sent the Shoutout."""
from_broadcaster_user_login: str
"""The broadcaster’s login name."""
from_broadcaster_user_name: str
"""The broadcaster’s display name."""
viewer_count: int
"""The number of users that were watching the from-broadcaster’s stream at the time of the Shoutout."""
started_at: datetime
"""The timestamp of when the moderator sent the Shoutout."""
class ChannelChatClearData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster user ID."""
broadcaster_user_name: str
"""The broadcaster display name."""
broadcaster_user_login: str
"""The broadcaster login."""
class ChannelChatClearUserMessagesData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster user ID."""
broadcaster_user_name: str
"""The broadcaster display name."""
broadcaster_user_login: str
"""The broadcaster login."""
target_user_id: str
"""The ID of the user that was banned or put in a timeout. All of their messages are deleted."""
target_user_name: str
"""The user name of the user that was banned or put in a timeout."""
target_user_login: str
"""The user login of the user that was banned or put in a timeout."""
class ChannelChatMessageDeleteData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster user ID."""
broadcaster_user_name: str
"""The broadcaster display name."""
broadcaster_user_login: str
"""The broadcaster login."""
target_user_id: str
"""The ID of the user whose message was deleted."""
target_user_name: str
"""The user name of the user whose message was deleted."""
target_user_login: str
"""The user login of the user whose message was deleted."""
message_id: str
"""A UUID that identifies the message that was removed."""
class Badge(TwitchObject):
set_id: str
"""An ID that identifies this set of chat badges. For example, Bits or Subscriber."""
id: str
"""An ID that identifies this version of the badge. The ID can be any value. For example, for Bits, the ID is the Bits tier level, but for
World of Warcraft, it could be Alliance or Horde."""
info: str
"""Contains metadata related to the chat badges in the badges tag. Currently, this tag contains metadata only for subscriber badges,
to indicate the number of months the user has been a subscriber."""
class MessageFragmentCheermote(TwitchObject):
prefix: str
"""The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of
{prefix} + {number of Bits}. For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.
When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered."""
bits: int
"""The amount of bits cheered."""
tier: int
"""The tier level of the cheermote."""
class MessageFragmentEmote(TwitchObject):
id: str
"""An ID that uniquely identifies this emote."""
emote_set_id: str
"""An ID that identifies the emote set that the emote belongs to."""
owner_id: str
"""The ID of the broadcaster who owns the emote."""
format: List[str]
"""The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. The possible formats are:
- animated — An animated GIF is available for this emote.
- static — A static PNG file is available for this emote.
"""
class MessageFragmentMention(TwitchObject):
user_id: str
"""The user ID of the mentioned user."""
user_name: str
"""The user name of the mentioned user."""
user_login: str
"""The user login of the mentioned user."""
class MessageFragment(TwitchObject):
type: str
"""The type of message fragment. Possible values:
- text
- cheermote
- emote
- mention
"""
text: str
"""Message text in fragment"""
cheermote: Optional[MessageFragmentCheermote]
"""Metadata pertaining to the cheermote."""
emote: Optional[MessageFragmentEmote]
"""Metadata pertaining to the emote."""
mention: Optional[MessageFragmentMention]
"""Metadata pertaining to the mention."""
class Message(TwitchObject):
text: str
"""The chat message in plain text."""
fragments: List[MessageFragment]
"""Ordered list of chat message fragments."""
class SubNoticeMetadata(TwitchObject):
sub_tier: str
"""The type of subscription plan being used. Possible values are:
- 1000 — First level of paid or Prime subscription
- 2000 — Second level of paid subscription
- 3000 — Third level of paid subscription
"""
is_prime: bool
"""Indicates if the subscription was obtained through Amazon Prime."""
duration_months: int
"""The number of months the subscription is for."""
class ResubNoticeMetadata(TwitchObject):
cumulative_months: int
"""The total number of months the user has subscribed."""
duration_months: int
"""The number of months the subscription is for."""
streak_months: int
"""Optional. The number of consecutive months the user has subscribed."""
sub_tier: str
"""The type of subscription plan being used. Possible values are:
- 1000 — First level of paid or Prime subscription
- 2000 — Second level of paid subscription
- 3000 — Third level of paid subscription
"""
is_prime: bool
"""Indicates if the resub was obtained through Amazon Prime."""
is_gift: bool
"""Whether or not the resub was a result of a gift."""
gifter_is_anonymous: Optional[bool]
"""Optional. Whether or not the gift was anonymous."""
gifter_user_id: Optional[str]
"""Optional. The user ID of the subscription gifter. None if anonymous."""
gifter_user_name: Optional[str]
"""Optional. The user name of the subscription gifter. None if anonymous."""
gifter_user_login: Optional[str]
"""Optional. The user login of the subscription gifter. None if anonymous."""
class SubGiftNoticeMetadata(TwitchObject):
duration_months: int
"""The number of months the subscription is for."""
cumulative_total: Optional[int]
"""Optional. The amount of gifts the gifter has given in this channel. None if anonymous."""
recipient_user_id: str
"""The user ID of the subscription gift recipient."""
recipient_user_name: str
"""The user name of the subscription gift recipient."""
recipient_user_login: str
"""The user login of the subscription gift recipient."""
sub_tier: str
"""The type of subscription plan being used. Possible values are:
- 1000 — First level of paid subscription
- 2000 — Second level of paid subscription
- 3000 — Third level of paid subscription
"""
community_gift_id: Optional[str]
"""Optional. The ID of the associated community gift. None if not associated with a community gift."""
class CommunitySubGiftNoticeMetadata(TwitchObject):
id: str
"""The ID of the associated community gift."""
total: int
"""Number of subscriptions being gifted."""
sub_tier: str
"""The type of subscription plan being used. Possible values are:
- 1000 — First level of paid subscription
- 2000 — Second level of paid subscription
- 3000 — Third level of paid subscription
"""
cumulative_total: Optional[int]
"""Optional. The amount of gifts the gifter has given in this channel. None if anonymous."""
class GiftPaidUpgradeNoticeMetadata(TwitchObject):
gifter_is_anonymous: bool
"""Whether the gift was given anonymously."""
gifter_user_id: Optional[str]
"""Optional. The user ID of the user who gifted the subscription. None if anonymous."""
gifter_user_name: Optional[str]
"""Optional. The user name of the user who gifted the subscription. None if anonymous."""
gifter_user_login: Optional[str]
"""Optional. The user login of the user who gifted the subscription. None if anonymous."""
class PrimePaidUpgradeNoticeMetadata(TwitchObject):
sub_tier: str
"""The type of subscription plan being used. Possible values are:
- 1000 — First level of paid subscription
- 2000 — Second level of paid subscription
- 3000 — Third level of paid subscription
"""
class RaidNoticeMetadata(TwitchObject):
user_id: str
"""The user ID of the broadcaster raiding this channel."""
user_name: str
"""The user name of the broadcaster raiding this channel."""
user_login: str
"""The login name of the broadcaster raiding this channel."""
viewer_count: int
"""The number of viewers raiding this channel from the broadcaster’s channel."""
profile_image_url: str
"""Profile image URL of the broadcaster raiding this channel."""
class UnraidNoticeMetadata(TwitchObject):
pass
class PayItForwardNoticeMetadata(TwitchObject):
gifter_is_anonymous: bool
"""Whether the gift was given anonymously."""
gifter_user_id: Optional[str]
"""Optional. The user ID of the user who gifted the subscription. None if anonymous."""
gifter_user_name: Optional[str]
"""Optional. The user name of the user who gifted the subscription. None if anonymous."""
gifter_user_login: Optional[str]
"""Optional. The user login of the user who gifted the subscription. None if anonymous."""
class AnnouncementNoticeMetadata(TwitchObject):
color: str
"""Color of the announcement."""
class CharityDonationNoticeMetadata(TwitchObject):
charity_name: str
"""Name of the charity."""
amount: Amount
"""An object that contains the amount of money that the user paid."""
class BitsBadgeTierNoticeMetadata(TwitchObject):
tier: int
"""The tier of the Bits badge the user just earned. For example, 100, 1000, or 10000."""
class ChannelChatNotificationData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster user ID."""
broadcaster_user_name: str
"""The broadcaster display name."""
broadcaster_user_login: str
"""The broadcaster login."""
chatter_user_id: str
"""The user ID of the user that sent the message."""
chatter_user_name: str
"""The user name of the user that sent the message."""
chatter_user_login: str
"""The user login of the user that sent the message."""
chatter_is_anonymous: bool
"""Whether or not the chatter is anonymous."""
color: str
"""The color of the user’s name in the chat room."""
badges: List[Badge]
"""List of chat badges."""
system_message: str
"""The message Twitch shows in the chat room for this notice."""
message_id: str
"""A UUID that identifies the message."""
message: Message
"""The structured chat message"""
notice_type: str
"""The type of notice. Possible values are:
- sub
- resub
- sub_gift
- community_sub_gift
- gift_paid_upgrade
- prime_paid_upgrade
- raid
- unraid
- pay_it_forward
- announcement
- bits_badge_tier
- charity_donation
"""
sub: Optional[SubNoticeMetadata]
"""Information about the sub event. None if notice_type is not sub."""
resub: Optional[ResubNoticeMetadata]
"""Information about the resub event. None if notice_type is not resub."""
sub_gift: Optional[SubGiftNoticeMetadata]
"""Information about the gift sub event. None if notice_type is not sub_gift."""
community_sub_gift: Optional[CommunitySubGiftNoticeMetadata]
"""Information about the community gift sub event. None if notice_type is not community_sub_gift."""
gift_paid_upgrade: Optional[GiftPaidUpgradeNoticeMetadata]
"""Information about the community gift paid upgrade event. None if notice_type is not gift_paid_upgrade."""
prime_paid_upgrade: Optional[PrimePaidUpgradeNoticeMetadata]
"""Information about the Prime gift paid upgrade event. None if notice_type is not prime_paid_upgrade."""
raid: Optional[RaidNoticeMetadata]
"""Information about the raid event. None if notice_type is not raid."""
unraid: Optional[UnraidNoticeMetadata]
"""Returns an empty payload if notice_type is unraid, otherwise returns None."""
pay_it_forward: Optional[PayItForwardNoticeMetadata]
"""Information about the pay it forward event. None if notice_type is not pay_it_forward."""
announcement: Optional[AnnouncementNoticeMetadata]
"""Information about the announcement event. None if notice_type is not announcement"""
charity_donation: Optional[CharityDonationNoticeMetadata]
"""Information about the charity donation event. None if notice_type is not charity_donation."""
bits_badge_tier: Optional[BitsBadgeTierNoticeMetadata]
"""Information about the bits badge tier event. None if notice_type is not bits_badge_tier."""
class ChannelAdBreakBeginData(TwitchObject):
duration_seconds: int
"""Length in seconds of the mid-roll ad break requested"""
started_at: datetime
"""The UTC timestamp of when the ad break began, in RFC3339 format. Note that there is potential delay between this
event, when the streamer requested the ad break, and when the viewers will see ads."""
is_automatic: bool
"""Indicates if the ad was automatically scheduled via Ads Manager"""
broadcaster_user_id: str
"""The broadcaster’s user ID for the channel the ad was run on."""
broadcaster_user_login: str
"""The broadcaster’s user login for the channel the ad was run on."""
broadcaster_user_name: str
"""The broadcaster’s user display name for the channel the ad was run on."""
requester_user_id: str
"""The ID of the user that requested the ad. For automatic ads, this will be the ID of the broadcaster."""
requester_user_login: str
"""The login of the user that requested the ad."""
requester_user_name: str
"""The display name of the user that requested the ad."""
class ChatMessageFragmentCheermoteMetadata(TwitchObject):
prefix: str
"""The name portion of the Cheermote string that you use in chat to cheer Bits.
The full Cheermote string is the concatenation of {prefix} + {number of Bits}.
For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.
When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered."""
bits: int
"""The amount of bits cheered."""
tier: int
"""The tier level of the cheermote."""
class ChatMessageFragmentEmoteMetadata(TwitchObject):
id: str
"""An ID that uniquely identifies this emote."""
emote_set_id: str
"""An ID that identifies the emote set that the emote belongs to."""
owner_id: str
"""The ID of the broadcaster who owns the emote."""
format: str
"""The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static.
But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. The possible formats are:
- animated — An animated GIF is available for this emote.
- static — A static PNG file is available for this emote.
"""
class ChatMessageFragmentMentionMetadata(TwitchObject):
user_id: str
"""The user ID of the mentioned user."""
user_name: str
"""The user name of the mentioned user."""
user_login: str
"""The user login of the mentioned user."""
class ChatMessageFragment(TwitchObject):
type: str
"""The type of message fragment. Possible values:
- text
- cheermote
- emote
- mention
"""
text: str
"""Message text in fragment."""
cheermote: Optional[ChatMessageFragmentCheermoteMetadata]
"""Optional. Metadata pertaining to the cheermote."""
emote: Optional[ChatMessageFragmentEmoteMetadata]
"""Optional. Metadata pertaining to the emote."""
mention: Optional[ChatMessageFragmentMentionMetadata]
"""Optional. Metadata pertaining to the mention."""
class ChatMessageBadge(TwitchObject):
set_id: str
"""An ID that identifies this set of chat badges. For example, Bits or Subscriber."""
id: str
"""An ID that identifies this version of the badge. The ID can be any value. For example, for Bits,
the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde."""
info: str
"""Contains metadata related to the chat badges in the badges tag. Currently, this tag contains metadata only for
subscriber badges, to indicate the number of months the user has been a subscriber."""
class ChatMessageCheerMetadata(TwitchObject):
bits: int
"""The amount of Bits the user cheered."""
class ChatMessageReplyMetadata(TwitchObject):
parent_message_id: str
"""An ID that uniquely identifies the parent message that this message is replying to."""
parent_message_body: str
"""The message body of the parent message."""
parent_user_id: str
"""User ID of the sender of the parent message."""
parent_user_name: str
"""User name of the sender of the parent message."""
parent_user_login: str
"""User login of the sender of the parent message."""
thread_message_id: str
"""An ID that identifies the parent message of the reply thread."""
thread_user_id: str
"""User ID of the sender of the thread’s parent message."""
thread_user_name: str
"""User name of the sender of the thread’s parent message."""
thread_user_login: str
"""User login of the sender of the thread’s parent message."""
class ChatMessage(TwitchObject):
text: str
"""The chat message in plain text."""
fragments: List[ChatMessageFragment]
"""Ordered list of chat message fragments."""
class ChannelChatMessageData(TwitchObject):
broadcaster_user_id: str
"""The broadcaster user ID."""
broadcaster_user_name: str
"""The broadcaster display name."""
broadcaster_user_login: str
"""The broadcaster login."""
chatter_user_id: str
"""The user ID of the user that sent the message."""
chatter_user_name: str
"""The user name of the user that sent the message."""
chatter_user_login: str
"""The user login of the user that sent the message."""
message_id: str
"""A UUID that identifies the message."""
message: ChatMessage
"""The structured chat message."""
message_type: str
"""The type of message. Possible values:
- text
- channel_points_highlighted
- channel_points_sub_only
- user_intro
- power_ups_message_effect
- power_ups_gigantified_emote
"""
badges: List[ChatMessageBadge]
"""List of chat badges."""
cheer: Optional[ChatMessageCheerMetadata]
"""Optional. Metadata if this message is a cheer."""
color: str
"""The color of the user’s name in the chat room. This is a hexadecimal RGB color code in the form, #<RGB>.
This tag may be empty if it is never set."""
reply: Optional[ChatMessageReplyMetadata]
"""Optional. Metadata if this message is a reply."""
channel_points_custom_reward_id: str
"""Optional. The ID of a channel points custom reward that was redeemed."""
source_broadcaster_user_id: Optional[str]
"""The broadcaster user ID of the channel the message was sent from.
Is None when the message happens in the same channel as the broadcaster.
Is not None when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster."""
source_broadcaster_user_name: Optional[str]
"""The user name of the broadcaster of the channel the message was sent from.
Is None when the message happens in the same channel as the broadcaster.
Is not None when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster."""
source_broadcaster_user_login: Optional[str]
"""The login of the broadcaster of the channel the message was sent from.
Is None when the message happens in the same channel as the broadcaster.
Is not None when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster."""
source_message_id: Optional[str]
"""The UUID that identifies the source message from the channel the message was sent from.
Is None when the message happens in the same channel as the broadcaster.
Is not None when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster."""
source_badges: Optional[List[ChatMessageBadge]]
"""The list of chat badges for the chatter in the channel the message was sent from.
Is None when the message happens in the same channel as the broadcaster.
Is not None when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster."""
is_source_only: Optional[bool]
"""Determines if a message delivered during a shared chat session is only sent to the source channel. Has no effect if the message is not sent during a shared chat session."""
class ChannelChatSettingsUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
emote_mode: bool
"""A Boolean value that determines whether chat messages must contain only emotes. True if only messages that are 100% emotes are allowed; otherwise false."""
follower_mode: bool
"""A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed.
True if the broadcaster restricts the chat room to followers only; otherwise false.
See follower_mode_duration_minutes for how long the followers must have followed the broadcaster to participate in the chat room."""
follower_mode_duration_minutes: Optional[int]
"""The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room. See follower_mode.
None if follower_mode is false."""
slow_mode: bool
"""A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.
Is true, if the broadcaster applies a delay; otherwise, false.
See slow_mode_wait_time_seconds for the delay."""
slow_mode_wait_time_seconds: Optional[int]
"""The amount of time, in seconds, that users need to wait between sending messages. See slow_mode.
None if slow_mode is false."""
subscriber_mode: bool
"""A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.
True if the broadcaster restricts the chat room to subscribers only; otherwise false."""
unique_chat_mode: bool
"""A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.
True if the broadcaster requires unique messages only; otherwise false."""
class WhisperInformation(TwitchObject):
text: str
"""The body of the whisper message."""
class UserWhisperMessageData(TwitchObject):
from_user_id: str
"""The ID of the user sending the message."""
from_user_name: str
"""The name of the user sending the message."""
from_user_login: str
"""The login of the user sending the message."""
to_user_id: str
"""The ID of the user receiving the message."""
to_user_name: str
"""The name of the user receiving the message."""
to_user_login: str
"""The login of the user receiving the message."""
whisper_id: str
"""The whisper ID."""
whisper: WhisperInformation
"""Object containing whisper information."""
class RewardEmote(TwitchObject):
id: str
"""The emote ID."""
name: str
"""The human readable emote token."""
class AutomaticReward(TwitchObject):
type: str
"""The type of reward. One of:
- single_message_bypass_sub_mode
- send_highlighted_message
- random_sub_emote_unlock
- chosen_sub_emote_unlock
- chosen_modified_sub_emote_unlock
"""
cost: int
"""The reward cost."""
unlocked_emote: Optional[MessageFragmentEmote]
"""Emote that was unlocked."""
class AutomaticReward2(TwitchObject):
type: str
"""The type of reward. One of:
- single_message_bypass_sub_mode
- send_highlighted_message
- random_sub_emote_unlock
- chosen_sub_emote_unlock
- chosen_modified_sub_emote_unlock
"""
channel_points: int
"""Number of channel points used."""
unlocked_emote: Optional[RewardEmote]
"""Emote associated with the reward."""
class RewardMessage(TwitchObject):
text: str
"""The text of the chat message."""
emotes: List[Emote]
"""An array that includes the emote ID and start and end positions for where the emote appears in the text."""
class ChannelPointsAutomaticRewardRedemptionAddData(TwitchObject):
broadcaster_user_id: str
"""The ID of the channel where the reward was redeemed."""
broadcaster_user_login: str
"""The login of the channel where the reward was redeemed."""
broadcaster_user_name: str
"""The display name of the channel where the reward was redeemed."""
user_id: str
"""The ID of the redeeming user."""
user_login: str
"""The login of the redeeming user."""
user_name: str
"""The display name of the redeeming user."""
id: str
"""The ID of the Redemption."""
reward: AutomaticReward
"""An object that contains the reward information."""
message: RewardMessage
"""An object that contains the user message and emote information needed to recreate the message."""
user_input: Optional[str]
"""A string that the user entered if the reward requires input."""
redeemed_at: datetime
"""The time of when the reward was redeemed."""
class ChannelPointsAutomaticRewardRedemptionAdd2Data(TwitchObject):
broadcaster_user_id: str
"""The ID of the channel where the reward was redeemed."""
broadcaster_user_login: str
"""The login of the channel where the reward was redeemed."""
broadcaster_user_name: str
"""The display name of the channel where the reward was redeemed."""
user_id: str
"""The ID of the redeeming user."""
user_login: str
"""The login of the redeeming user."""
user_name: str
"""The display name of the redeeming user."""
id: str
"""The ID of the Redemption."""
reward: AutomaticReward2
"""An object that contains the reward information."""
message: RewardMessage
"""An object that contains the user message and emote information needed to recreate the message."""
redeemed_at: datetime
"""The time of when the reward was redeemed."""
class ChannelVIPAddData(TwitchObject):
user_id: str
"""The ID of the user who was added as a VIP."""
user_login: str
"""The login of the user who was added as a VIP."""
user_name: str
"""The display name of the user who was added as a VIP."""
broadcaster_user_id: str
"""The ID of the broadcaster."""
broadcaster_user_login: str
"""The login of the broadcaster."""
broadcaster_user_name: str
"""The display name of the broadcaster."""
class ChannelVIPRemoveData(TwitchObject):
user_id: str
"""The ID of the user who was removed as a VIP."""
user_login: str
"""The login of the user who was removed as a VIP."""
user_name: str
"""The display name of the user who was removed as a VIP."""
broadcaster_user_id: str
"""The ID of the broadcaster."""
broadcaster_user_login: str
"""The login of the broadcaster."""
broadcaster_user_name: str
"""The display name of the broadcaster."""
class ChannelUnbanRequestCreateData(TwitchObject):
id: str
"""The ID of the unban request."""
broadcaster_user_id: str
"""The broadcaster’s user ID for the channel the unban request was created for."""
broadcaster_user_login: str
"""The broadcaster’s login name."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
user_id: str
"""User ID of user that is requesting to be unbanned."""
user_login: str
"""The user’s login name."""
user_name: str
"""The user’s display name."""
text: str
"""Message sent in the unban request."""
created_at: datetime
"""The datetime of when the unban request was created."""
class ChannelUnbanRequestResolveData(TwitchObject):
id: str
"""The ID of the unban request."""
broadcaster_user_id: str
"""The broadcaster’s user ID for the channel the unban request was updated for."""
broadcaster_user_login: str
"""The broadcaster’s login name."""
broadcaster_user_name: str
"""The broadcaster’s display name."""
moderator_id: str
"""Optional. User ID of moderator who approved/denied the request."""
moderator_login: str
"""Optional. The moderator’s login name"""
moderator_name: str
"""Optional. The moderator’s display name"""
user_id: str
"""User ID of user that requested to be unbanned."""
user_login: str
"""The user’s login name."""
user_name: str
"""The user’s display name."""
resolution_text: str
"""Optional. Resolution text supplied by the mod/broadcaster upon approval/denial of the request."""
status: str
"""Dictates whether the unban request was approved or denied. Can be the following:
- approved
- canceled
- denied
"""
class MessageWithID(Message):
message_id: str
"""The UUID that identifies the message."""
class ChannelSuspiciousUserMessageData(TwitchObject):
broadcaster_user_id: str
"""The ID of the channel where the treatment for a suspicious user was updated."""
broadcaster_user_name: str
"""The display name of the channel where the treatment for a suspicious user was updated."""
broadcaster_user_login: str
"""The login of the channel where the treatment for a suspicious user was updated."""
user_id: str
"""The user ID of the user that sent the message."""
user_name: str
"""The user name of the user that sent the message."""
user_login: str
"""The user login of the user that sent the message."""
low_trust_status: str
"""The status set for the suspicious user. Can be the following: “none”, “active_monitoring”, or “restricted”"""
shared_ban_channel_ids: List[str]
"""A list of channel IDs where the suspicious user is also banned."""
types: List[str]
"""User types (if any) that apply to the suspicious user, can be “manually_added”, “ban_evader”, or “banned_in_shared_channel”."""
ban_evasion_evaluation: str
"""A ban evasion likelihood value (if any) that as been applied to the user automatically by Twitch, can be “unknown”, “possible”, or “likely”."""
message: MessageWithID
"""The Chat Message"""
class ChannelSuspiciousUserUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the channel where the treatment for a suspicious user was updated."""
broadcaster_user_name: str
"""The display name of the channel where the treatment for a suspicious user was updated."""
broadcaster_user_login: str
"""The Login of the channel where the treatment for a suspicious user was updated."""
moderator_user_id: str
"""The ID of the moderator that updated the treatment for a suspicious user."""
moderator_user_name: str
"""The display name of the moderator that updated the treatment for a suspicious user."""
moderator_user_login: str
"""The login of the moderator that updated the treatment for a suspicious user."""
user_id: str
"""The ID of the suspicious user whose treatment was updated."""
user_name: str
"""The display name of the suspicious user whose treatment was updated."""
user_login: str
"""The login of the suspicious user whose treatment was updated."""
low_trust_status: str
"""The status set for the suspicious user. Can be the following: “none”, “active_monitoring”, or “restricted”."""
class ModerateMetadataFollowers(TwitchObject):
follow_duration_minutes: int
"""The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room."""
class ModerateMetadataSlow(TwitchObject):
wait_time_seconds: int
"""The amount of time, in seconds, that users need to wait between sending messages."""
class ModerateMetadataVip(TwitchObject):
user_id: str
"""The ID of the user gaining VIP status."""
user_login: str
"""The login of the user gaining VIP status."""
user_name: str
"""The user name of the user gaining VIP status."""
class ModerateMetadataUnvip(TwitchObject):
user_id: str
"""The ID of the user losing VIP status."""
user_login: str
"""The login of the user losing VIP status."""
user_name: str
"""The user name of the user losing VIP status."""
class ModerateMetadataMod(TwitchObject):
user_id: str
"""The ID of the user gaining mod status."""
user_login: str
"""The login of the user gaining mod status."""
user_name: str
"""The user name of the user gaining mod status."""
class ModerateMetadataUnmod(TwitchObject):
user_id: str
"""The ID of the user losing mod status."""
user_login: str
"""The login of the user losing mod status."""
user_name: str
"""The user name of the user losing mod status."""
class ModerateMetadataBan(TwitchObject):
user_id: str
"""The ID of the user being banned."""
user_login: str
"""The login of the user being banned."""
user_name: str
"""The user name of the user being banned."""
reason: Optional[str]
"""Reason given for the ban."""
class ModerateMetadataUnban(TwitchObject):
user_id: str
"""The ID of the user being unbanned."""
user_login: str
"""The login of the user being unbanned."""
user_name: str
"""The user name of the user being unbanned."""
class ModerateMetadataTimeout(TwitchObject):
user_id: str
"""The ID of the user being timed out."""
user_login: str
"""The login of the user being timed out."""
user_name: str
"""The user name of the user being timed out."""
reason: str
"""Optional. The reason given for the timeout."""
expires_at: datetime
"""The time at which the timeout ends."""
class ModerateMetadataUntimeout(TwitchObject):
user_id: str
"""The ID of the user being untimed out."""
user_login: str
"""The login of the user being untimed out."""
user_name: str
"""The user name of the user untimed out."""
class ModerateMetadataRaid(TwitchObject):
user_id: str
"""The ID of the user being raided."""
user_login: str
"""The login of the user being raided."""
user_name: str
"""The user name of the user raided."""
user_name: str
"""The user name of the user raided."""
viewer_count: int
"""The viewer count."""
class ModerateMetadataUnraid(TwitchObject):
user_id: str
"""The ID of the user no longer being raided."""
user_login: str
"""The login of the user no longer being raided."""
user_name: str
"""The user name of the no longer user raided."""
class ModerateMetadataDelete(TwitchObject):
user_id: str
"""The ID of the user whose message is being deleted."""
user_login: str
"""The login of the user."""
user_name: str
"""The user name of the user."""
message_id: str
"""The ID of the message being deleted."""
message_body: str
"""The message body of the message being deleted."""
class ModerateMetadataAutomodTerms(TwitchObject):
action: str
"""Either “add” or “remove”."""
list: str
"""Either “blocked” or “permitted”."""
terms: List[str]
"""Terms being added or removed."""
from_automod: bool
"""Whether the terms were added due to an Automod message approve/deny action."""
class ModerateMetadataUnbanRequest(TwitchObject):
is_approved: bool
"""Whether or not the unban request was approved or denied."""
user_id: str
"""The ID of the banned user."""
user_login: str
"""The login of the user."""
user_name: str
"""The user name of the user."""
moderator_message: str
"""The message included by the moderator explaining their approval or denial."""
class ModerateMetadataWarn(TwitchObject):
user_id: str
"""The ID of the user being warned."""
user_login: str
"""The login of the user being warned."""
user_name: str
"""The user name of the user being warned."""
reason: Optional[str]
"""Reason given for the warning."""
chat_rules_cited: Optional[List[str]]
"""Chat rules cited for the warning."""
class ChannelModerateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster."""
broadcaster_user_login: str
"""The login of the broadcaster."""
broadcaster_user_name: str
"""The user name of the broadcaster."""
moderator_user_id: str
"""The ID of the moderator who performed the action."""
moderator_user_login: str
"""The login of the moderator."""
moderator_user_name: str
"""The user name of the moderator."""
action: str
"""The action performed. Possible values are:
- ban
- timeout
- unban
- untimeout
- clear
- emoteonly
- emoteonlyoff
- followers
- followersoff
- uniquechat
- uniquechatoff
- slow
- slowoff
- subscribers
- subscribersoff
- unraid
- delete
- vip
- unvip
- raid
- add_blocked_term
- add_permitted_term
- remove_blocked_term
- remove_permitted_term
- mod
- unmod
- approve_unban_request
- deny_unban_request
- warn
"""
followers: Optional[ModerateMetadataFollowers]
"""Metadata associated with the followers command."""
slow: Optional[ModerateMetadataSlow]
"""Metadata associated with the slow command."""
vip: Optional[ModerateMetadataVip]
"""Metadata associated with the vip command."""
unvip: Optional[ModerateMetadataUnvip]
"""Metadata associated with the unvip command."""
mod: Optional[ModerateMetadataMod]
"""Metadata associated with the mod command."""
unmod: Optional[ModerateMetadataUnmod]
"""Metadata associated with the unmod command."""
ban: Optional[ModerateMetadataBan]
"""Metadata associated with the ban command."""
unban: Optional[ModerateMetadataUnban]
"""Metadata associated with the unban command."""
timeout: Optional[ModerateMetadataTimeout]
"""Metadata associated with the timeout command."""
untimeout: Optional[ModerateMetadataUntimeout]
"""Metadata associated with the untimeout command."""
raid: Optional[ModerateMetadataRaid]
"""Metadata associated with the raid command."""
unraid: Optional[ModerateMetadataUnraid]
"""Metadata associated with the unraid command."""
delete: Optional[ModerateMetadataDelete]
"""Metadata associated with the delete command."""
automod_terms: Optional[ModerateMetadataAutomodTerms]
"""Metadata associated with the automod terms changes."""
unban_request: Optional[ModerateMetadataUnbanRequest]
"""Metadata associated with an unban request."""
warn: Optional[ModerateMetadataWarn]
"""Metadata associated with the warn command."""
class ChannelWarningAcknowledgeData(TwitchObject):
broadcaster_user_id: str
"""The user ID of the broadcaster."""
broadcaster_user_login: str
"""The login of the broadcaster."""
broadcaster_user_name: str
"""The user name of the broadcaster."""
user_id: str
"""The ID of the user that has acknowledged their warning."""
user_login: str
"""The login of the user that has acknowledged their warning."""
user_name: str
"""The user name of the user that has acknowledged their warning."""
class ChannelWarningSendData(TwitchObject):
broadcaster_user_id: str
"""The user ID of the broadcaster."""
broadcaster_user_login: str
"""The login of the broadcaster."""
broadcaster_user_name: str
"""The user name of the broadcaster."""
moderator_user_id: str
"""The user ID of the moderator who sent the warning."""
moderator_user_login: str
"""The login of the moderator."""
moderator_user_name: str
"""The user name of the moderator."""
user_id: str
"""The ID of the user being warned."""
user_login: str
"""The login of the user being warned."""
user_name: str
"""The user name of the user being."""
reason: Optional[str]
"""The reason given for the warning."""
chat_rules_cited: Optional[List[str]]
"""The chat rules cited for the warning."""
class AutomodMessageHoldData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
user_id: str
"""The message sender’s user ID."""
user_login: str
"""The message sender’s login name."""
user_name: str
"""The message sender’s display name."""
message_id: str
"""The ID of the message that was flagged by automod."""
message: Message
"""The body of the message."""
category: str
"""The category of the message."""
level: int
"""The level of severity. Measured between 1 to 4."""
held_at: datetime
"""The timestamp of when automod saved the message."""
class AutomodMessageUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
user_id: str
"""The message sender’s user ID."""
user_login: str
"""The message sender’s login name."""
user_name: str
"""The message sender’s display name."""
moderator_user_id: str
"""The ID of the moderator."""
moderator_user_name: str
"""TThe moderator’s user name."""
moderator_user_login: str
"""The login of the moderator."""
message_id: str
"""The ID of the message that was flagged by automod."""
message: Message
"""The body of the message."""
category: str
"""The category of the message."""
level: int
"""The level of severity. Measured between 1 to 4."""
status: str
"""The message’s status. Possible values are:
- Approved
- Denied
- Expired"""
held_at: datetime
"""The timestamp of when automod saved the message."""
class AutomodSettingsUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
moderator_user_id: str
"""The ID of the moderator who changed the channel settings."""
moderator_user_login: str
"""The moderator’s login."""
moderator_user_name: str
"""The moderator’s user name."""
bullying: int
"""The Automod level for hostility involving name calling or insults."""
overall_level: Optional[int]
"""The default AutoMod level for the broadcaster. This field is None if the broadcaster has set one or more of the individual settings."""
disability: int
"""The Automod level for discrimination against disability."""
race_ethnicity_or_religion: int
"""The Automod level for racial discrimination."""
misogyny: int
"""The Automod level for discrimination against women."""
sexuality_sex_or_gender: int
"""The AutoMod level for discrimination based on sexuality, sex, or gender."""
aggression: int
"""The Automod level for hostility involving aggression."""
sex_based_terms: int
"""The Automod level for sexual content."""
swearing: int
"""The Automod level for profanity."""
class AutomodTermsUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
moderator_user_id: str
"""The ID of the moderator who changed the channel settings."""
moderator_user_login: str
"""The moderator’s login."""
moderator_user_name: str
"""The moderator’s user name."""
action: str
"""The status change applied to the terms. Possible options are:
- add_permitted
- remove_permitted
- add_blocked
- remove_blocked"""
from_automod: bool
"""Indicates whether this term was added due to an Automod message approve/deny action."""
terms: List[str]
"""The list of terms that had a status change."""
class ChannelChatUserMessageHoldData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
user_id: str
"""The User ID of the message sender."""
user_login: str
"""The message sender’s login."""
user_name: str
"""The message sender’s display name."""
message_id: str
"""The ID of the message that was flagged by automod."""
message: Message
"""The body of the message."""
class ChannelChatUserMessageUpdateData(TwitchObject):
broadcaster_user_id: str
"""The ID of the broadcaster specified in the request."""
broadcaster_user_login: str
"""The login of the broadcaster specified in the request."""
broadcaster_user_name: str
"""The user name of the broadcaster specified in the request."""
user_id: str
"""The User ID of the message sender."""
user_login: str
"""The message sender’s login."""
user_name: str
"""The message sender’s user name."""
status: str
"""The message’s status. Possible values are:
- approved
- denied
- invalid"""
message_id: str
"""The ID of the message that was flagged by automod."""
message: Message
"""The body of the message."""
class SharedChatParticipant(TwitchObject):
broadcaster_user_id: str
"""The User ID of the participant channel."""
broadcaster_user_name: str
"""The display name of the participant channel."""
broadcaster_user_login: str
"""The user login of the participant channel."""
class ChannelSharedChatBeginData(TwitchObject):
session_id: str
"""The unique identifier for the shared chat session."""
broadcaster_user_id: str
"""The User ID of the channel in the subscription condition which is now active in the shared chat session."""
broadcaster_user_name: str
"""The display name of the channel in the subscription condition which is now active in the shared chat session."""
broadcaster_user_login: str
"""The user login of the channel in the subscription condition which is now active in the shared chat session."""
host_broadcaster_user_id: str
"""The User ID of the host channel."""
host_broadcaster_user_name: str
"""The display name of the host channel."""
host_broadcaster_user_login: str
"""The user login of the host channel."""
participants: List[SharedChatParticipant]
"""The list of participants in the session."""
class ChannelSharedChatUpdateData(TwitchObject):
session_id: str
"""The unique identifier for the shared chat session."""
broadcaster_user_id: str
"""The User ID of the channel in the subscription condition."""
broadcaster_user_name: str
"""The display name of the channel in the subscription condition."""
broadcaster_user_login: str
"""The user login of the channel in the subscription condition."""
host_broadcaster_user_id: str
"""The User ID of the host channel."""
host_broadcaster_user_name: str
"""The display name of the host channel."""
host_broadcaster_user_login: str
"""The user login of the host channel."""
participants: List[SharedChatParticipant]
"""The list of participants in the session."""
class ChannelSharedChatEndData(TwitchObject):
session_id: str
"""The unique identifier for the shared chat session."""
broadcaster_user_id: str
"""The User ID of the channel in the subscription condition which is no longer active in the shared chat session."""
broadcaster_user_name: str
"""The display name of the channel in the subscription condition which is no longer active in the shared chat session."""
broadcaster_user_login: str
"""The user login of the channel in the subscription condition which is no longer active in the shared chat session."""
host_broadcaster_user_id: str
"""The User ID of the host channel."""
host_broadcaster_user_name: str
"""The display name of the host channel."""
host_broadcaster_user_login: str
"""The user login of the host channel."""
class PowerUpEmote(TwitchObject):
id: str
"""The ID that uniquely identifies this emote."""
name: str
"""The human readable emote token."""
class PowerUp(TwitchObject):
type: str
"""Possible values:
- message_effect
- celebration
- gigantify_an_emote"""
emote: Optional[PowerUpEmote]
"""Emote associated with the reward."""
message_effect_id: Optional[str]
"""The ID of the message effect."""
class ChannelBitsUseData(TwitchObject):
broadcaster_user_id: str
"""The User ID of the channel where the Bits were redeemed."""
broadcaster_user_login: str
"""The login of the channel where the Bits were used."""
broadcaster_user_name: str
"""The display name of the channel where the Bits were used."""
user_id: str
"""The User ID of the redeeming user."""
user_login: str
"""The login name of the redeeming user."""
user_name: str
"""The display name of the redeeming user."""
bits: int
"""The number of Bits used."""
type: str
"""Possible values are:
- cheer
- power_up
- combo"""
message: Optional[Message]
"""Contains the user message and emote information needed to recreate the message."""
power_up: Optional[PowerUp]
"""Data about Power-up."""
# Events
class ChannelPollBeginEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPollBeginData
class ChannelUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelUpdateData
class ChannelFollowEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelFollowData
class ChannelSubscribeEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSubscribeData
class ChannelSubscriptionEndEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSubscribeData
class ChannelSubscriptionGiftEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSubscriptionGiftData
class ChannelSubscriptionMessageEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSubscriptionMessageData
class ChannelCheerEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelCheerData
class ChannelRaidEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelRaidData
class ChannelBanEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelBanData
class ChannelUnbanEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelUnbanData
class ChannelModeratorAddEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelModeratorAddData
class ChannelModeratorRemoveEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelModeratorRemoveData
class ChannelPointsCustomRewardAddEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsCustomRewardData
class ChannelPointsCustomRewardUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsCustomRewardData
class ChannelPointsCustomRewardRemoveEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsCustomRewardData
class ChannelPointsCustomRewardRedemptionAddEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsCustomRewardRedemptionData
class ChannelPointsCustomRewardRedemptionUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsCustomRewardRedemptionData
class ChannelPollProgressEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPollProgressData
class ChannelPollEndEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPollEndData
class ChannelPredictionEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPredictionData
class ChannelPredictionEndEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPredictionEndData
class DropEntitlementGrantEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: DropEntitlementGrantData
class ExtensionBitsTransactionCreateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ExtensionBitsTransactionCreateData
class GoalEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: GoalData
class HypeTrainEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: HypeTrainData
class HypeTrainEndEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: HypeTrainEndData
class StreamOnlineEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: StreamOnlineData
class StreamOfflineEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: StreamOfflineData
class UserAuthorizationGrantEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: UserAuthorizationGrantData
class UserAuthorizationRevokeEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: UserAuthorizationRevokeData
class UserUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: UserUpdateData
class ShieldModeEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ShieldModeData
class CharityCampaignStartEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: CharityCampaignStartData
class CharityCampaignProgressEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: CharityCampaignProgressData
class CharityCampaignStopEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: CharityCampaignStopData
class CharityDonationEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: CharityDonationData
class ChannelShoutoutCreateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelShoutoutCreateData
class ChannelShoutoutReceiveEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelShoutoutReceiveData
class ChannelChatClearEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatClearData
class ChannelChatClearUserMessagesEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatClearUserMessagesData
class ChannelChatMessageDeleteEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatMessageDeleteData
class ChannelChatNotificationEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatNotificationData
class ChannelAdBreakBeginEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelAdBreakBeginData
class ChannelChatMessageEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatMessageData
class ChannelChatSettingsUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatSettingsUpdateData
class UserWhisperMessageEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: UserWhisperMessageData
class ChannelPointsAutomaticRewardRedemptionAddEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsAutomaticRewardRedemptionAddData
class ChannelPointsAutomaticRewardRedemptionAdd2Event(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelPointsAutomaticRewardRedemptionAdd2Data
class ChannelVIPAddEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelVIPAddData
class ChannelVIPRemoveEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelVIPRemoveData
class ChannelUnbanRequestCreateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelUnbanRequestCreateData
class ChannelUnbanRequestResolveEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelUnbanRequestResolveData
class ChannelSuspiciousUserMessageEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSuspiciousUserMessageData
class ChannelSuspiciousUserUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSuspiciousUserUpdateData
class ChannelModerateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelModerateData
class ChannelWarningAcknowledgeEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelWarningAcknowledgeData
class ChannelWarningSendEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelWarningSendData
class AutomodMessageHoldEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: AutomodMessageHoldData
class AutomodMessageUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: AutomodMessageUpdateData
class AutomodSettingsUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: AutomodSettingsUpdateData
class AutomodTermsUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: AutomodTermsUpdateData
class ChannelChatUserMessageHoldEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatUserMessageHoldData
class ChannelChatUserMessageUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelChatUserMessageUpdateData
class ChannelSharedChatBeginEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSharedChatBeginData
class ChannelSharedChatUpdateEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSharedChatUpdateData
class ChannelSharedChatEndEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelSharedChatEndData
class ChannelBitsUseEvent(TwitchObject):
subscription: Subscription
metadata: MessageMetadata
event: ChannelBitsUseData
|