types

package
v0.0.0-...-c3bab1b Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 3 Imported by: 0

README

Types

This package contains various API types.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointGateway

func EndpointGateway(zlib bool, version int, encoding string) (st string)

Types

type Snowflake

type Snowflake struct {
	Time      time.Time
	WorkerID  int64
	ProcessID int64
	Increment int64
}

Snowflake represents a Twitter snowflake. See https://discord.com/developers/docs/reference#snowflakes for more details.

func NewSnowflake

func NewSnowflake(snowflake string) (sw *Snowflake, err error)

NewSnowflake parses a Snowflake

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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