discord

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 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 Discord

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

func NewDiscord

func NewDiscord(config map[string]interface{}, appCfg *config.App) *Discord

NewDiscord returns new Discord instance

func (*Discord) Name

func (s *Discord) Name() string

Name returns name of the provider

func (*Discord) SendEvent

func (s *Discord) SendEvent(ev *event.Event) error

SendEvent sends event to the provider

func (*Discord) SendMessage

func (s *Discord) SendMessage(msg string) error

SendMessage sends text message to the provider

Jump to

Keyboard shortcuts

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