session

package
v0.0.0-...-fa60fbe Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	*gateway.Gateway
	*api.Client
}

Session combines the Gateway and API client into one.

func New

func New(token string) (*Session, error)

New creates a new Session.

func (*Session) User

func (s *Session) User(id string) (*revolt.User, error)

User returns the given user. If the user is not found in the cache, it queries the API.

Jump to

Keyboard shortcuts

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