discord

package
v0.0.0-...-0075f3b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func NewSession

func NewSession(discordWebhookUri string) (*Session, error)

func (*Session) ParseTemplate

func (s *Session) ParseTemplate(r io.Reader) (string, error)

func (*Session) Send

func (s *Session) Send(r io.Reader) error

func (*Session) SendToDiscord

func (s *Session) SendToDiscord(content string) error

type TemplateParams

type TemplateParams struct {
	Date, From, To, Subject, Body string
}

Jump to

Keyboard shortcuts

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