Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Received ¶
type Received[U comparable] struct { // ID is the unique ID of the message. ID string // To is the destination of the message. This may be the identifier of a // room or channel or the name of a user. To string // Sender is a unique identifier for the message sender. // Whether it remains constant for a given sender depends on the semantics // of the type argument. Sender U // Text is the text of the message. Text string // Timestamp is the timestamp of the message as milliseconds since the // Unix epoch. Timestamp int64 // IsModerator indicates whether the sender can moderate the room to which // the message was sent. IsModerator bool // IsElevated indicates whether the message sender is known to have // elevated privileges with respect to the bot, for example a subscriber // on Twitch. This may not implicitly include moderators. IsElevated bool }
Received is a message received from a service.
type Sent ¶
type Sent struct {
	// Reply is a message to reply to. If empty, the message is not interpreted
	// as a reply.
	Reply string
	// To is the channel to whom the message is sent.
	To string
	// Text is the message text.
	Text string
}
    Sent is a message to be sent to a service.
 Click to show internal directories. 
   Click to hide internal directories.