context

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandContext

type CommandContext struct {
	*tempest.CommandInteraction
	// contains filtered or unexported fields
}

func InitContext

func InitContext(client *tempest.Client, itx *tempest.CommandInteraction, lvl zerolog.Level) (*CommandContext, error)

func (*CommandContext) Context

func (t *CommandContext) Context() context.Context

func (*CommandContext) Deadline

func (t *CommandContext) Deadline() (deadline time.Time, ok bool)

func (*CommandContext) DeferResponse added in v0.0.8

func (t *CommandContext) DeferResponse() error

func (*CommandContext) Done

func (t *CommandContext) Done() <-chan struct{}

func (*CommandContext) EditResponse

func (t *CommandContext) EditResponse(message string) error

func (*CommandContext) Err

func (t *CommandContext) Err() error

func (*CommandContext) Logger

func (t *CommandContext) Logger() zerolog.Logger

func (*CommandContext) Requester

func (t *CommandContext) Requester() tempest.Snowflake

func (*CommandContext) RequesterRoles

func (t *CommandContext) RequesterRoles() []tempest.Snowflake

func (*CommandContext) SendRequesterPrivateMessage

func (t *CommandContext) SendRequesterPrivateMessage(msg string) (tempest.Message, error)

func (*CommandContext) Value

func (t *CommandContext) Value(key interface{}) interface{}

Jump to

Keyboard shortcuts

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