api

package
v0.0.0-...-3d4fb19 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package api implements an API client for Discord.

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 New

func New(t string, opts ...Option) (*Client, error)

New creates a new Client.

func (*Client) Application

func (c *Client) Application(id string) *application.Resource

func (*Client) Channel

func (c *Client) Channel(id string) *channel.Resource

func (*Client) GetGateway

func (c *Client) GetGateway(ctx context.Context) (string, error)

func (*Client) Guild

func (c *Client) Guild(id string) *guild.Resource

type Option

type Option func(*Client)

Option configures a Client

func HTTPClient

func HTTPClient(cli *http.Client) Option

HTTPClient sets a Client's HTTP client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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