discord

package
v0.0.0-...-382259f Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAppSecretNotSet = fmt.Errorf("discord: Discord.AppSecret not set in world config")
	ErrChannelNotSet   = fmt.Errorf("discord: Discord.ChannelID not set in world config")
)
View Source
var DiscordEnabled = wdb.MakePropID("DiscrdOn")

Functions

This section is empty.

Types

type DiscordPlugin

type DiscordPlugin struct {
	Server        *realm.Server
	Session       *discordgo.Session
	ChannelID     string
	NonFatalError error
}

func (*DiscordPlugin) Activated

func (p *DiscordPlugin) Activated() (bool, error)

func (*DiscordPlugin) GetChannelName

func (p *DiscordPlugin) GetChannelName() string

func (*DiscordPlugin) Init

func (p *DiscordPlugin) Init(server *realm.Server, info *realm.PluginInfo) error

func (*DiscordPlugin) Terminate

func (p *DiscordPlugin) Terminate() error

Jump to

Keyboard shortcuts

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