discordapi

package
v11.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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

OpCode names

func (OpCode) String

func (c OpCode) String() string

type ResponseCode

type ResponseCode int

ResponseCode is a type alias for websocket error codes

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

ResponseCode names

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