discord

package
v0.0.0-...-a6fa872 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 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 contains the discord session and connection settings

func New

func New(cfg config.Discord) (*Discord, error)

New creates a new Discord session with config

func (*Discord) Close

func (d *Discord) Close()

Close cleanly closes the current Discord session

func (*Discord) SendUpdatedIP

func (d *Discord) SendUpdatedIP(ip string)

SendUpdatedIP sends the updated IP address to the configured channels

Jump to

Keyboard shortcuts

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