seventv

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(client *http.Client) *API

func (API) GetGlobalEmotes

func (a API) GetGlobalEmotes(ctx context.Context) (EmoteResponse, error)

type APIError

type APIError struct {
	StatusCode int    `json:"status_code"`
	Status     string `json:"status"`
	ErrorText  string `json:"error"`
	ErrorCode  int    `json:"error_code"`
}

func (APIError) Error

func (a APIError) Error() string

type ChannelEmoteResponse

type ChannelEmoteResponse struct {
	EmoteSet struct {
		Emotes []Emote `json:"emotes"`
	} `json:"emote_set"`
}

type Emote

type Emote struct {
	ID   string    `json:"id"`
	Name string    `json:"name"`
	Data EmoteData `json:"data"`
}

type EmoteData

type EmoteData struct {
	Animated bool `json:"animated"`
	Host     Host `json:"host"`
}

type EmoteResponse

type EmoteResponse struct {
	Emotes []Emote `json:"emotes"`
}

type Files

type Files struct {
	Name   string `json:"name"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
	Format string `json:"format"`
}

type Host

type Host struct {
	URL   string  `json:"url"`
	Files []Files `json:"files"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL