discord

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 4 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 is an instance of the Discord service.

func New

func New(name, avatar, webhook string) (*Discord, error)

New will create a new instance of the Discord service.

func (*Discord) Send

func (t *Discord) Send(content string) error

Send will send a message to a Discord channel via a webhook.

Jump to

Keyboard shortcuts

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