discordapi

package
v6.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	Heartbeat      OpCode = 1
	HeartbeatAck          = 11
	Identify              = 2
	InvalidSession        = 9
	Resume                = 6
	Dispatch              = 0
	StatusUpdate          = 3
	Reconnect             = 7
	Hello                 = 10
)

OpCode names

View Source
const (
	UnknownError         ResponseCode = 4000
	UnknownOpcode                     = 4001
	DecodeError                       = 4002
	NotAuthenticated                  = 4003
	AuthenticationFailed              = 4004
	AlreadyAuthenticated              = 4005
	InvalidSequence                   = 4007
	RateLimited                       = 4008
	SessionTimeout                    = 4009
	InvalidShard                      = 4010
	ShardingRequired                  = 4011
)

ResponseCode names

Variables

This section is empty.

Functions

This section is empty.

Types

type OpCode

type OpCode int

OpCode is a type alias for discord OpCode values

func (OpCode) String

func (c OpCode) String() string

type ResponseCode

type ResponseCode int

ResponseCode is a type alias for websocket error codes

func (ResponseCode) String

func (c ResponseCode) String() string

Jump to

Keyboard shortcuts

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