discord

package
v0.0.0-...-c3df548 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 6 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 {
	DiscordClient *discordgo.Session
	Debug         bool
	// contains filtered or unexported fields
}

Client wrapper for Discord

func NewClient

func NewClient(apiToken string) *Client

NewClient returns a new Client wrapper for Discord

func (*Client) Send

func (c *Client) Send(message string) error

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop() error

Jump to

Keyboard shortcuts

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