Skip to content

Latest commit

 

History

History
107 lines (82 loc) · 1.73 KB

chat_docs.md

File metadata and controls

107 lines (82 loc) · 1.73 KB

Chat Documentation

Get Channel Chat Badges

This is an example of how to get channel chat badges

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

resp, err := client.GetChannelChatBadges(&helix.GetChatBadgeParams{
    BroadcasterID: "145328278",
})
if err != nil {
    // handle error
}

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

Get Global Chat Badges

This is an example of how to get global chat badges

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

resp, err := client.GetGlobalChatBadges()
if err != nil {
    // handle error
}

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

Get Channel Emotes

This is an example of how to get channel emotes

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

resp, err := client.GetChannelEmotes(&helix.GetChannelEmotesParams{
    BroadcasterID: "145328278",
})
if err != nil {
    // handle error
}

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

Get Global Emotes

This is an example of how to get global emotes

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

resp, err := client.GetGlobalEmotes()
if err != nil {
    // handle error
}

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

Get Emote Sets

This is an example of how to get a set of emotes

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

resp, err := client.GetEmoteSets(&helix.GetEmoteSetsParams{
    EmoteSetIDs: []string{"300678379"},
})
if err != nil {
    // handle error
}

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