Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CapMembership adds membership state event data. CapMembership = "twitch.tv/membership" // CapTags adds IRC V3 message tags to several commands. CapTags = "twitch.tv/tags" // CapCommands enables several Twitch-specific commands. CapCommands = "twitch.tv/commands" )
View Source
const (
Delim = "\r\n"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLEARCHAT ¶
type CLEARCHAT Packet // Purge a user’s message(s), typically after a user is banned from chat or timed out.
type CLEARMSG ¶
type CLEARMSG Packet // Single message removal on a channel. This is triggered via /delete <target-msg-id> on IRC.
func (*CLEARMSG) TargetMsgID ¶
type Command ¶
Command executes a command to the server. Be wary that there is a potential for race conditions if you access non-thread-safe variables.
type HOSTTARGET ¶
type HOSTTARGET Packet // Channel starts or stops host mode.
func (*HOSTTARGET) Channel ¶
func (p *HOSTTARGET) Channel() string
func (*HOSTTARGET) HostingChannel ¶
func (p *HOSTTARGET) HostingChannel() string
func (*HOSTTARGET) NumViewers ¶
func (p *HOSTTARGET) NumViewers() (int, error)
type Prefixer ¶
type Prefixer struct {
// contains filtered or unexported fields
}
func NewPrefixer ¶
New creates a new Prefixer that forwards all calls to Write() to writer.Write() with all lines prefixed with the return value of prefixFunc. Having a function instead of a static prefix allows to print timestamps or other changing information.
type ROOMSTATE ¶
type ROOMSTATE Packet // Identifies the channel’s chat settings (e.g., slow mode duration).
type USERNOTICE ¶
type USERNOTICE Packet // Announces Twitch-specific events to the channel (e.g., a user’s subscription notification).
func (*USERNOTICE) Channel ¶
func (p *USERNOTICE) Channel() string
func (*USERNOTICE) Message ¶
func (p *USERNOTICE) Message() string
Click to show internal directories.
Click to hide internal directories.