Versions in this module Expand all Collapse all v1 v1.0.2 May 30, 2025 Changes in this version + const CommandContextReconnect + const CommandContextTypeAddAdmin + const CommandContextTypeCal + const CommandContextTypeCalLocal + const CommandContextTypeDailyRate + const CommandContextTypeDeleteAll + const CommandContextTypeGPT + const CommandContextTypeHelper + const CommandContextTypeHitokoto + const CommandContextTypeMusic + const CommandContextTypeNews + const CommandContextTypeNotify + const CommandContextTypePing + const CommandContextTypeRemoveAdmin + const CommandContextTypeRestart + const CommandContextTypeRoll + const CommandContextTypeShowAdmin + const CommandContextTypeTryPanic + const CommandContextTypeUser + type CommandCommonContext struct + AuthorID string + MsgID string + TargetID string + type CommandContext struct + Common *CommandCommonContext + Ctx context.Context + Extra *CommandExtraContext + func GetNewCommandCtx() *CommandContext + func (ctx *CommandContext) ContextHandler(Command string, parameters ...string) + func (ctx *CommandContext) ErrorSenderHandler(err error) + func (ctx *CommandContext) ErrorSenderHandlerNew(ctxFunc interface{}, parameters ...string) + func (ctx *CommandContext) Init(khlCtx *kook.EventHandlerCommonContext) *CommandContext + func (ctx *CommandContext) InitContext(baseCtx context.Context) *CommandContext + func (ctx *CommandContext) InitExtra(khlCtx interface{}) *CommandContext + func (ctx *CommandContext) IsAdmin() bool + type CommandContextFunc func(ctx context.Context, TargetID, MsgID, AuthorID string, parameters ...string) error + type CommandContextWithGuildIDFunc func(ctx context.Context, targetID, quoteID, authorID string, guildID string, ...) error + type CommandExtraContext struct + GuildID string