plugins

package
v0.0.0-...-eead62d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PogCog

type PogCog struct {
	Commands            *sandwich.Commandable
	InteractionCommands *sandwich.InteractionCommandable
}

func NewPogCog

func NewPogCog() *PogCog

func (*PogCog) CogInfo

func (p *PogCog) CogInfo() *sandwich.CogInfo

CogInfo returns information about a cog, including name and description.

func (*PogCog) GetCommandable

func (p *PogCog) GetCommandable() *sandwich.Commandable

GetCommandable returns all commands in a cog. You can optionally register commands here, however there is no guarantee this wont be called multiple times.

func (*PogCog) GetInteractionCommandable

func (p *PogCog) GetInteractionCommandable() *sandwich.InteractionCommandable

GetInteractionCommandable returns all interaction commands in a cog. You can optionally register commands here, however there is no guarantee this wont be called multiple times.

func (*PogCog) RegisterCog

func (p *PogCog) RegisterCog(b *sandwich.Bot) (err error)

RegisterCog is called in bot.RegisterCog, the plugin should set itself up, including commands.

Jump to

Keyboard shortcuts

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