discord

package
v0.0.0-...-25dc0e1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordNotifier

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

func NewDiscordNotifier

func NewDiscordNotifier(ctx context.Context, token string, channelID string) (*DiscordNotifier, error)

func (*DiscordNotifier) Connect

func (dn *DiscordNotifier) Connect(ctx context.Context) error

func (*DiscordNotifier) Disconnect

func (dn *DiscordNotifier) Disconnect() error

func (*DiscordNotifier) HandleEvent

func (dn *DiscordNotifier) HandleEvent(ctx context.Context, event events.EventMessage)

func (*DiscordNotifier) Send

func (dn *DiscordNotifier) Send(ctx context.Context, message string) error

func (*DiscordNotifier) Setup

func (dn *DiscordNotifier) Setup(ctx context.Context, newDN *DiscordNotifier) error

Jump to

Keyboard shortcuts

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