discord

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

Client is the struct that provides interactivity with discord

func NewClient

func NewClient(c ClientConfig, l *zap.SugaredLogger) *Client

NewClient produces a new client with the given config

func (*Client) RegisterCommands

func (c *Client) RegisterCommands(ctx context.Context) error

RegisterCommands reaces out to discord to register all commands supported by the app

type ClientConfig

type ClientConfig struct {
	AppID   string
	GuildID string
	APIHost string
	Token   string
}

Jump to

Keyboard shortcuts

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