discord

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 Discord

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

Discord implements a Provider for discord notifications.

func New

func New(cfg discordCfg.Discord, logger *zap.Logger) (*Discord, error)

New returns the new Discord instance

func (*Discord) Ignore added in v0.8.2

func (d *Discord) Ignore() bool

func (*Discord) Name

func (d *Discord) Name() string

Name returns the Discord channel name

func (*Discord) Send

func (d *Discord) Send(mes *message.Message) error

Send implements

Jump to

Keyboard shortcuts

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