notifs

package
v0.0.0-...-77c539c Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifHandler

type NotifHandler struct {
	Session *discordgo.Session
}

NotifHandler objects will be used to notify channels

func NewNotifHandler

func NewNotifHandler(Session *discordgo.Session) *NotifHandler

NewNotifHandler creates a new instance of Notifier

func (*NotifHandler) Notify

func (n *NotifHandler) Notify(ChannelID string, message string)

Notify sends notifications to ChannelID with message

func (*NotifHandler) NotifyAll

func (n *NotifHandler) NotifyAll(message string)

NotifyAll calls Notify for all channels in the database

Jump to

Keyboard shortcuts

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