discord

package
v0.0.0-...-44941fa Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token     string `json:"token"`
	ChannelID string `json:"channelId"`
	UserID    string `json:"userId"`
}

type Receiver

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

func New

func New(config Config) (*Receiver, error)

func (*Receiver) AddHandler

func (d *Receiver) AddHandler(h garoo.Handler)

func (*Receiver) LoadConfig

func (d *Receiver) LoadConfig(config any) error

func (*Receiver) Name

func (d *Receiver) Name() string

func (*Receiver) PostMessage

func (d *Receiver) PostMessage(req garoo.PostMessageRequest) error

func (*Receiver) SaveConfig

func (d *Receiver) SaveConfig(config any) error

func (*Receiver) Start

func (d *Receiver) Start() error

func (*Receiver) Stop

func (d *Receiver) Stop() error

Jump to

Keyboard shortcuts

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