gateway

package
v0.0.0-...-6324481 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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.

func (*Session) Open

func (s *Session) Open(ctx context.Context) error

Open opens the session.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL