ModerationModule

package
v0.0.0-...-06d5ffc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logging.Logger
)

Functions

This section is empty.

Types

type ModerationCommand

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

func (ModerationCommand) Aliases

func (cc ModerationCommand) Aliases() []string

func (ModerationCommand) Description

func (cc ModerationCommand) Description() string

func (ModerationCommand) Name

func (cc ModerationCommand) Name() string

func (ModerationCommand) Permission

func (cc ModerationCommand) Permission() int

func (ModerationCommand) Usage

func (cc ModerationCommand) Usage() string

type ModerationModule

type ModerationModule struct {
	Bot      *Bot.Bot
	Commands []ModerationCommand
}

func New

func New(bot *Bot.Bot, l *logging.Logger) (c *ModerationModule)

func (*ModerationModule) CommandInfo

func (c *ModerationModule) CommandInfo(name string, data *Bot.ServerData) (response *Bot.Embed, found bool)

func (*ModerationModule) Execute

func (*ModerationModule) HelpFields

func (c *ModerationModule) HelpFields() (title string, content string)

Jump to

Keyboard shortcuts

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