feat
This commit is contained in:
@ -10,6 +10,9 @@ const authBodyValidator = z.object({
|
|||||||
type TwitchSubscribeBody = {
|
type TwitchSubscribeBody = {
|
||||||
type: "channel.follow";
|
type: "channel.follow";
|
||||||
version: 2;
|
version: 2;
|
||||||
|
condition: {
|
||||||
|
broadcaster_user_id: "1093261112",
|
||||||
|
},
|
||||||
transport: {
|
transport: {
|
||||||
method: "webhook";
|
method: "webhook";
|
||||||
callback: string;
|
callback: string;
|
||||||
@ -70,6 +73,9 @@ export const createTwitchClient = () => {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
type: "channel.follow",
|
type: "channel.follow",
|
||||||
version: 2,
|
version: 2,
|
||||||
|
condition: {
|
||||||
|
broadcaster_user_id: '1093261112'
|
||||||
|
},
|
||||||
transport: {
|
transport: {
|
||||||
callback: "https://twitch.johncosta.tech/api/webhook",
|
callback: "https://twitch.johncosta.tech/api/webhook",
|
||||||
method: "webhook",
|
method: "webhook",
|
||||||
|
Reference in New Issue
Block a user