Versions in this module Expand all Collapse all v3 v3.3.0 Jan 19, 2023 Changes in this version type Client + func (c *Client) DeleteMessage(channel, msgID string) type PrivateMessage + CustomRewardID string v3.2.0 Jun 12, 2022 Changes in this version type Client + func (c *Client) OnSelfJoinMessage(callback func(message UserJoinMessage)) + func (c *Client) OnSelfPartMessage(callback func(message UserPartMessage)) v3.1.0 May 1, 2022 Changes in this version type Client + func (c *Client) Reply(channel, parentMsgId string, text string) type PrivateMessage + Reply *Reply + type Reply struct + ParentDisplayName string + ParentMsgBody string + ParentMsgID string + ParentUserID string + ParentUserLogin string v3.0.0 Jan 12, 2022 Changes in this version + const CommandsCapability + const MembershipCapability + const TagsCapability + const TwitchRateLimitWindow + const Unlimited + var DefaultCapabilities = []string + var ErrClientDisconnected = errors.New("client called Disconnect()") + var ErrConnectionIsNotOpen = errors.New("connection is not open") + var ErrLoginAuthenticationFailed = errors.New("login authentication failed") + var ReadBufferSize = 64 + var WriteBufferSize = 512 + type ClearChatMessage struct + BanDuration int + Channel string + Message string + Raw string + RawType string + RoomID string + Tags map[string]string + TargetUserID string + TargetUsername string + Time time.Time + Type MessageType + func (msg *ClearChatMessage) GetType() MessageType + type ClearMessage struct + Channel string + Login string + Message string + Raw string + RawType string + Tags map[string]string + TargetMsgID string + Type MessageType + func (msg *ClearMessage) GetType() MessageType + type Client struct + Capabilities []string + IdlePingInterval time.Duration + IrcAddress string + PongTimeout time.Duration + SendPings bool + SetupCmd string + TLS bool + func NewAnonymousClient() *Client + func NewClient(username, oauth string) *Client + func (c *Client) Ban(channel, username, reason string) + func (c *Client) Connect() error + func (c *Client) Depart(channel string) + func (c *Client) Disconnect() error + func (c *Client) FollowersOff(channel string) + func (c *Client) FollowersOn(channel, duration string) + func (c *Client) Join(channels ...string) + func (c *Client) OnClearChatMessage(callback func(message ClearChatMessage)) + func (c *Client) OnClearMessage(callback func(message ClearMessage)) + func (c *Client) OnConnect(callback func()) + func (c *Client) OnGlobalUserStateMessage(callback func(message GlobalUserStateMessage)) + func (c *Client) OnNamesMessage(callback func(message NamesMessage)) + func (c *Client) OnNoticeMessage(callback func(message NoticeMessage)) + func (c *Client) OnPingMessage(callback func(message PingMessage)) + func (c *Client) OnPingSent(callback func()) + func (c *Client) OnPongMessage(callback func(message PongMessage)) + func (c *Client) OnPrivateMessage(callback func(message PrivateMessage)) + func (c *Client) OnReconnectMessage(callback func(message ReconnectMessage)) + func (c *Client) OnRoomStateMessage(callback func(message RoomStateMessage)) + func (c *Client) OnUnsetMessage(callback func(message RawMessage)) + func (c *Client) OnUserJoinMessage(callback func(message UserJoinMessage)) + func (c *Client) OnUserNoticeMessage(callback func(message UserNoticeMessage)) + func (c *Client) OnUserPartMessage(callback func(message UserPartMessage)) + func (c *Client) OnUserStateMessage(callback func(message UserStateMessage)) + func (c *Client) OnWhisperMessage(callback func(message WhisperMessage)) + func (c *Client) Say(channel, text string) + func (c *Client) SetIRCToken(ircToken string) + func (c *Client) SetJoinRateLimiter(rateLimiter RateLimiter) + func (c *Client) Userlist(channel string) ([]string, error) + func (c *Client) Whisper(username, text string) + type Emote struct + Count int + ID string + Name string + Positions []EmotePosition + type EmotePosition struct + End int + Start int + type GlobalUserStateMessage struct + EmoteSets []string + Raw string + RawType string + Tags map[string]string + Type MessageType + User User + func (msg *GlobalUserStateMessage) GetType() MessageType + type Message interface + GetType func() MessageType + func ParseMessage(line string) Message + type MessageType int + const CLEARCHAT + const CLEARMSG + const GLOBALUSERSTATE + const JOIN + const NAMES + const NOTICE + const PART + const PING + const PONG + const PRIVMSG + const RECONNECT + const ROOMSTATE + const UNSET + const USERNOTICE + const USERSTATE + const WHISPER + type NamesMessage struct + Channel string + Raw string + RawType string + Type MessageType + Users []string + func (msg *NamesMessage) GetType() MessageType + type NoticeMessage struct + Channel string + Message string + MsgID string + Raw string + RawType string + Tags map[string]string + Type MessageType + func (msg *NoticeMessage) GetType() MessageType + type PingMessage struct + Message string + Raw string + RawType string + Type MessageType + func (msg *PingMessage) GetType() MessageType + type PongMessage struct + Message string + Raw string + RawType string + Type MessageType + func (msg *PongMessage) GetType() MessageType + type PrivateMessage struct + Action bool + Bits int + Channel string + Emotes []*Emote + FirstMessage bool + ID string + Message string + Raw string + RawType string + RoomID string + Tags map[string]string + Time time.Time + Type MessageType + User User + func (msg *PrivateMessage) GetType() MessageType + type RateLimiter interface + GetLimit func() int + IsUnlimited func() bool + Throttle func(count int) + type RawMessage struct + Message string + Raw string + RawType string + Tags map[string]string + Type MessageType + func (msg *RawMessage) GetType() MessageType + type ReconnectMessage struct + Raw string + RawType string + Type MessageType + func (msg *ReconnectMessage) GetType() MessageType + type RoomStateMessage struct + Channel string + Message string + Raw string + RawType string + RoomID string + State map[string]int + Tags map[string]string + Type MessageType + func (msg *RoomStateMessage) GetType() MessageType + type User struct + Badges map[string]int + Color string + DisplayName string + ID string + Name string + type UserJoinMessage struct + Channel string + Raw string + RawType string + Type MessageType + User string + func (msg *UserJoinMessage) GetType() MessageType + type UserNoticeMessage struct + Channel string + Emotes []*Emote + ID string + Message string + MsgID string + MsgParams map[string]string + Raw string + RawType string + RoomID string + SystemMsg string + Tags map[string]string + Time time.Time + Type MessageType + User User + func (msg *UserNoticeMessage) GetType() MessageType + type UserPartMessage struct + Channel string + Raw string + RawType string + Type MessageType + User string + func (msg *UserPartMessage) GetType() MessageType + type UserStateMessage struct + Channel string + EmoteSets []string + Message string + Raw string + RawType string + Tags map[string]string + Type MessageType + User User + func (msg *UserStateMessage) GetType() MessageType + type WhisperMessage struct + Action bool + Emotes []*Emote + Message string + MessageID string + Raw string + RawType string + Tags map[string]string + Target string + ThreadID string + Type MessageType + User User + func (msg *WhisperMessage) GetType() MessageType + type WindowRateLimiter struct + func CreateDefaultRateLimiter() *WindowRateLimiter + func CreateUnlimitedRateLimiter() *WindowRateLimiter + func CreateVerifiedRateLimiter() *WindowRateLimiter + func (r *WindowRateLimiter) GetLimit() int + func (r *WindowRateLimiter) IsUnlimited() bool + func (r *WindowRateLimiter) Throttle(count int) v3.0.0-beta.2 Jan 12, 2022 Other modules containing this package github.com/gempir/go-twitch-irc github.com/gempir/go-twitch-irc/v2 github.com/gempir/go-twitch-irc/v4