discord

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "discord"

Variables

View Source
var ErrNotConnected = errors.New("not connected")

Functions

func Initialize

func Initialize(m *plugin.Manager) (plugin.Plugin, error)

Types

type Config

type Config struct {
	Token        string `toml:"token"`
	ActivityName string `toml:"activity"`
	OwnerID      string `toml:"owner"`
	// contains filtered or unexported fields
}

type Manager

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

func NewManager

func NewManager(ev *event.Dispatcher) *Manager

func (*Manager) Configure

func (m *Manager) Configure(c Config) error

func (*Manager) Connect

func (m *Manager) Connect() error

func (*Manager) CurrentUsername

func (m *Manager) CurrentUsername() (string, error)

func (*Manager) Disconnect

func (m *Manager) Disconnect() error

func (*Manager) MessageChannel

func (m *Manager) MessageChannel(channelID, message string) error

func (*Manager) MessageChannelTTS

func (m *Manager) MessageChannelTTS(channelID, message string) error

func (*Manager) OwnerID

func (m *Manager) OwnerID() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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