opcode

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanReconnectAfter

func CanReconnectAfter(code Type) bool

Types

type Type

type Type uint

Type is the discord operation value

const (
	Dispatch            Type = 0
	Heartbeat           Type = 1
	HeartbeatACK        Type = 11
	Hello               Type = 10
	Identify            Type = 2
	InvalidSession      Type = 9
	PresenceUpdate      Type = 3
	Reconnect           Type = 7
	RequestGuildMembers Type = 8
	Resume              Type = 6
	VoiceStateUpdate    Type = 4
)

send / receive

const (
	Invalid Type = 0b111111111111 // 4095
)

Jump to

Keyboard shortcuts

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