Documentation ¶
Overview ¶
Package gateway contains the low level implementation for interacting with Discord's websocket API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is a single connection to the Discord Gateway.
func NewSession ¶
func NewSession(dispatcher event.Dispatcher, logger *zap.Logger, shardCount uint, shardID uint, token string) *Session
NewSession creates a new session.
Click to show internal directories.
Click to hide internal directories.