ctx

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCtx

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

func New

func New(args []string, msg *discordgo.MessageCreate, session *discordgo.Session) *BaseCtx

func (BaseCtx) GetArgs

func (b BaseCtx) GetArgs() []string

func (BaseCtx) GetAuthor

func (b BaseCtx) GetAuthor() *discordgo.User

func (BaseCtx) GetChannel

func (b BaseCtx) GetChannel() *discordgo.Channel

func (BaseCtx) GetGuild

func (b BaseCtx) GetGuild() *discordgo.Guild

func (BaseCtx) GetMessage

func (b BaseCtx) GetMessage() *discordgo.MessageCreate

type Ctx

type Ctx interface {
	GetArgs() []string
	GetAuthor() *discordgo.User
	GetChannel() *discordgo.Channel
	GetGuild() *discordgo.Guild
	GetMessage() *discordgo.MessageCreate
}

Jump to

Keyboard shortcuts

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