Documentation ¶
Index ¶
- Constants
- Variables
- func GetState() (string, error)
- func IRCInit(wgInit, wgStop *sync.WaitGroup, stop chan struct{}, nick string, oauth string, ...)
- type Helix
- func (h *Helix) EditChannelInfo(broadcasterID, title, gameID string) (error, error)
- func (h *Helix) GetBannedUser(broadcasterID, userID string) (helix.Ban, error)
- func (h *Helix) GetChannelInfo(broadcasterID string) (helix.ChannelInformation, error)
- func (h *Helix) GetClip(clipID string) (helix.Clip, error)
- func (h *Helix) GetFollower(broadcasterID, userID string) (helix.UserFollow, error)
- func (h *Helix) GetGameName(channel_id string) (string, error)
- func (h *Helix) GetStream(broadcasterID string) (helix.Stream, error)
- func (h *Helix) GetTitle(channel_id string) (string, error)
- func (h *Helix) GetUser(userID string) (helix.User, error)
- func (h *Helix) GetUserID(username string) (string, error)
- func (h *Helix) SearchGame(gameName string) (helix.Game, error)
- func (h *Helix) SetGame(channelID, gameName string) (string, error, error)
- func (h *Helix) SetTitle(channelID, title string) (error, error)
- type Twitch
- func (t *Twitch) Admin() bool
- func (t *Twitch) BotAdmin() bool
- func (t *Twitch) Helix() (*Helix, error)
- func (t *Twitch) Mod() bool
- func (t *Twitch) Parse() (*core.Message, error)
- func (t *Twitch) Person(id string) (int64, error)
- func (t *Twitch) PersonID(s, _ string) (string, error)
- func (t *Twitch) Ping(msg any, _ error) (*core.Message, error)
- func (t *Twitch) PlaceExact(id string) (int64, error)
- func (t *Twitch) PlaceID(s string) (string, error)
- func (t *Twitch) PlaceLogical(id string) (int64, error)
- func (t *Twitch) Send(msg any, _ error) (*core.Message, error)
- func (t *Twitch) Usage(usage string) any
- func (t *Twitch) Write(msg any, usrErr error) (*core.Message, error)
Constants ¶
View Source
const Type = 1 << 1
Variables ¶
View Source
var ( ErrExpiredRefreshToken = errors.New("The user will need to reconnect the bot to twitch.") ErrRetry = errors.New("Refresh the access token and try again.") ErrNoResults = errors.New("Couldn't find what you were looking for.") ErrUserTokenRequired = errors.New("This channel's broadcaster must connect their twitch account to the bot.") )
View Source
var ( ClientID string ClientSecret string )
Functions ¶
Types ¶
type Helix ¶
type Helix struct {
// contains filtered or unexported fields
}
func (*Helix) EditChannelInfo ¶
func (*Helix) GetBannedUser ¶
func (*Helix) GetChannelInfo ¶
func (h *Helix) GetChannelInfo(broadcasterID string) (helix.ChannelInformation, error)
func (*Helix) GetFollower ¶
func (h *Helix) GetFollower(broadcasterID, userID string) (helix.UserFollow, error)
Click to show internal directories.
Click to hide internal directories.