discord

package
v0.0.0-...-59ef1fd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 8 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(botToken string, channelName string, logger *zap.Logger) (*DiscordNotifier, error)

NewDiscordNotifier returns and initializes a new Discord notifier.

During initialization, a list of all guilds and channels is fetched. Newly added guilds and channels won't be detected at runtime.

func (*DiscordNotifier) LookupGroupID

func (d *DiscordNotifier) LookupGroupID(groupName string) (string, error)

func (*DiscordNotifier) MissingSignaturesOnTransaction

func (d *DiscordNotifier) MissingSignaturesOnTransaction(v *vaa.VAA, hasSigs, wantSigs int, quorum bool, missing []string) error

Jump to

Keyboard shortcuts

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