disrest

package module
v0.0.0-...-8b1a11d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string, logger *slog.Logger, opts ...rest.ConfigOpt) *Client

func (*Client) Close

func (c *Client) Close(ctx context.Context)

func (*Client) GatewayBot

func (c *Client) GatewayBot(opts ...rest.RequestOpt) (res *distype.GatewayBotGetResponse, err error)

func (*Client) Request

func (c *Client) Request(endpoint *rest.CompiledEndpoint, rqBody interface{}, rsBody interface{}, opts ...rest.RequestOpt) error

Jump to

Keyboard shortcuts

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