client

package
v0.0.0-...-39eec44 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ApplicationID  string                `json:"application_id"`
	CachingManager *cache.CachingManager `json:"caching_manager"`
	Token          string
	Ready          bool
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) (client *Client)

NewClient creates a new bot client

bot := client.NewClient("token")

func (*Client) Connect

func (c *Client) Connect() (err error)

func (*Client) Disconnect

func (c *Client) Disconnect() error

func (*Client) SetCachingManager

func (client *Client) SetCachingManager(manager *cache.CachingManager)

SetCachingManager sets the caching manager for the client

client.SetCachingManager(cache.NewCachingManager(cache.CacheConfig{100, 100, 100}))

Jump to

Keyboard shortcuts

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