github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/entities.go (about)

     1  package client
     2  
     3  // from https://github.com/Mrs4s/MiraiGo/blob/master/client/entities.go
     4  
     5  import (
     6  	"errors"
     7  
     8  	"github.com/LagrangeDev/LagrangeGo/message"
     9  )
    10  
    11  var (
    12  	ErrAlreadyOnline  = errors.New("already online")
    13  	ErrMemberNotFound = errors.New("member not found")
    14  	ErrNotExists      = errors.New("not exists")
    15  )
    16  
    17  type ClientDisconnectedEvent struct {
    18  	Message string
    19  }
    20  
    21  type groupMessageReceiptEvent struct {
    22  	Rand int32
    23  	Seq  int32
    24  	Msg  *message.GroupMessage
    25  }