Documentation
¶
Index ¶
- type AnnouncementColor
- type AnnouncementMessage
- type AnonGiftPaidUpgradeMessage
- type Badge
- type ClearChat
- type ClearMessage
- type Emote
- type GiftPaidUpgradeMessage
- type JoinMessage
- type MsgID
- type Notice
- type PartMessage
- type PingMessage
- type PongMessage
- type PrivateMessage
- type RaidMessage
- type RitualMessage
- type RoomState
- type SubGiftMessage
- type SubMessage
- type SubPlan
- type UserNotice
- type UserState
- type UserType
- type Whisper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnouncementColor ¶ added in v0.0.2
type AnnouncementColor string
const ( Primary AnnouncementColor = "PRIMARY" Blue AnnouncementColor = "BLUE" Green AnnouncementColor = "GREEN" Orange AnnouncementColor = "ORANGE" Purple AnnouncementColor = "PURPLE" )
func (AnnouncementColor) RGBHex ¶ added in v0.0.2
func (a AnnouncementColor) RGBHex() string
func (AnnouncementColor) String ¶ added in v0.0.2
func (a AnnouncementColor) String() string
type AnnouncementMessage ¶
type AnnouncementMessage struct { UserNotice ParamColor AnnouncementColor Message string }
type AnonGiftPaidUpgradeMessage ¶
type AnonGiftPaidUpgradeMessage struct { UserNotice PromoGiftTotal int PromoName string }
type ClearChat ¶
type ClearMessage ¶
type ClearMessage struct { Login string RoomID string ChannelUserName string TargetMsgID string TMISentTS time.Time }
func (*ClearMessage) IRC ¶
func (c *ClearMessage) IRC() string
type GiftPaidUpgradeMessage ¶
type GiftPaidUpgradeMessage struct { UserNotice PromoGiftTotal int PromoName string SenderLogin string SenderName string }
type JoinMessage ¶
type JoinMessage struct {
Channel string
}
func (JoinMessage) IRC ¶
func (j JoinMessage) IRC() string
type MsgID ¶
type MsgID string
const ( // UserNotice Sub MsgID = "sub" ReSub MsgID = "resub" SubGift MsgID = "subgift" SubMysteryGift MsgID = "submysterygift" GiftPaidUpgrade MsgID = "giftpaidupgrade" RewardGift MsgID = "rewardgift" AnonGiftPaidUpgrade MsgID = "anongiftpaidupgrade" Raid MsgID = "raid" UnRaid MsgID = "unraid" Ritual MsgID = "ritual" BitsBadgeTier MsgID = "bitsbadgetier" Announcement MsgID = "announcement" )
type PartMessage ¶
type PartMessage struct {
Channel string
}
func (PartMessage) IRC ¶
func (p PartMessage) IRC() string
type PingMessage ¶
type PingMessage struct{}
func (PingMessage) IRC ¶
func (p PingMessage) IRC() string
type PongMessage ¶
type PongMessage struct{}
func (PongMessage) IRC ¶
func (p PongMessage) IRC() string
type PrivateMessage ¶
type PrivateMessage struct { BadgeInfo []Badge Badges []Badge Bits int Color string DisplayName string Emotes []Emote ID string Mod bool FirstMsg bool // Hype chat PaidAmount int PaidCurrency string PaidExponent int PaidLevel string PaidIsSystemMessage bool // Reply ParentMsgID string ParentUserID string ParentUserLogin string ParentDisplayName string ParentMsgBody string ThreadParentMsgID string ThreadParentUserLogin string RoomID string ChannelUserName string Subscriber bool TMISentTS time.Time Turbo bool UserID string UserType UserType VIP bool Message string }
func (*PrivateMessage) Clone ¶ added in v0.4.0
func (p *PrivateMessage) Clone() *PrivateMessage
func (*PrivateMessage) IRC ¶
func (p *PrivateMessage) IRC() string
type RaidMessage ¶
type RaidMessage struct { UserNotice DisplayName string Login string ViewerCount int }
type RitualMessage ¶
type RitualMessage struct { UserNotice RitualName string Message string }
type RoomState ¶
type RoomState struct { EmoteOnly *bool FollowersOnly *int R9K *bool RoomID string ChannelUserName string Slow *int SubsOnly *bool }
Only the changed values are set RoomState does not represent the final state
type SubGiftMessage ¶
type SubMessage ¶
type UserNotice ¶
type UserNotice struct { BadgeInfo []Badge Badges []Badge Color string DisplayName string Emotes []Emote ID string Login string Mod bool MsgID MsgID RoomID string ChannelUserName string Subscriber bool SystemMsg string TMISentTS time.Time Turbo bool UserID string UserType UserType }
func (*UserNotice) IRC ¶
func (u *UserNotice) IRC() string
type UserState ¶
Click to show internal directories.
Click to hide internal directories.