Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 762 Bytes

raid_docs.md

File metadata and controls

46 lines (36 loc) · 762 Bytes

Raid Documentation

Start Raid

This is an example of how to start a raid.

client, err := helix.NewClient(&helix.Options{
    ClientID: "your-client-id",
})
if err != nil {
    // handle error
}

resp, err := client.StartRaid(&helix.StartRaidParams{
    FromBroadcasterID: "22484632",
  	ToBroadcasterID: "71092938" 
})
if err != nil {
    // handle error
}

fmt.Printf("%+v\n", resp)

Cancel Raid

This is an example of how to cancel a raid.

client, err := helix.NewClient(&helix.Options{
    ClientID: "your-client-id",
})
if err != nil {
    // handle error
}

resp, err := resp, err := client.CancelRaid(&helix.CancelRaidParams{
    BroadcasterID: "22484632", 
})
if err != nil {
    // handle error
}

fmt.Printf("%+v\n", resp)