context

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandCommonContext

type CommandCommonContext struct {
	TargetID string
	AuthorID string
	MsgID    string
}

CommandCommonContext is a context for command.

type CommandContext

type CommandContext struct {
	Common *CommandCommonContext
	Extra  *CommandExtraContext
}

CommandContext is a context for command.

func GetNewCommandCtx

func GetNewCommandCtx() *CommandContext

GetNewCommandCtx is a function for command.

@return *CommandContext

func (*CommandContext) AdminAddHandler

func (ctx *CommandContext) AdminAddHandler(parameters ...string)

AdminAddHandler is a function for command.

@receiver ctx
@param parameters
@return string

func (*CommandContext) AdminRemoveHandler

func (ctx *CommandContext) AdminRemoveHandler(parameters ...string)

AdminRemoveHandler is a function for command.

@receiver ctx
@param parameters
@return error

func (*CommandContext) AdminShowHandler

func (ctx *CommandContext) AdminShowHandler()

AdminShowHandler is a function for command.

@receiver ctx
@return error

func (*CommandContext) ErrorSenderHandler

func (ctx *CommandContext) ErrorSenderHandler(err error)

ErrorSenderHandler is a function for command.

@receiver ctx
@param err

func (*CommandContext) GetHitokotoHandler

func (ctx *CommandContext) GetHitokotoHandler(parameters ...string)

GetHitokotoHandler is a function for command.

@receiver ctx
@param parameters
@return error

func (*CommandContext) GetUserInfoHandler

func (ctx *CommandContext) GetUserInfoHandler(parameters ...string)

GetUserInfoHandler is a function for command.

@receiver ctx
@param guildID
@param parameters
@return error

func (*CommandContext) HelpHandler

func (ctx *CommandContext) HelpHandler(parameters ...string)

HelpHandler is a function for command.

@receiver ctx
@return error

func (*CommandContext) Init

Init is a init function for command.

@receiver ctx

func (*CommandContext) InitExtra

func (ctx *CommandContext) InitExtra(khlCtx interface{}) *CommandContext

InitExtra is a init function for command.

@receiver ctx
@param khlCtx
@return *CommandContext

func (*CommandContext) IsAdmin

func (ctx *CommandContext) IsAdmin() bool

IsAdmin is a function for command.

@receiver ctx
@return bool

func (*CommandContext) PingHandler

func (ctx *CommandContext) PingHandler()

PingHandler is a function for command.

@receiver ctx

func (*CommandContext) RollDiceHandler

func (ctx *CommandContext) RollDiceHandler(parameters ...string)

RollDiceHandler is a function for command.

@receiver ctx
@return error

func (*CommandContext) SearchMusicHandler

func (ctx *CommandContext) SearchMusicHandler(parameters ...string)

SearchMusicHandler is a function for command.

@receiver ctx
@param parameters

func (*CommandContext) ShowCalHandler

func (ctx *CommandContext) ShowCalHandler(parameters ...string)

ShowCalHandler is a function for command.

@receiver ctx
@param parameters
@return error

type CommandExtraContext

type CommandExtraContext struct {
	GuildID string
}

CommandExtraContext is a context for command.

Jump to

Keyboard shortcuts

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