Documentation ¶
Index ¶
- type CommandContext
- func (t *CommandContext) Context() context.Context
- func (t *CommandContext) Deadline() (deadline time.Time, ok bool)
- func (t *CommandContext) Done() <-chan struct{}
- func (t *CommandContext) EditResponse(message string, ephemeral bool) error
- func (t *CommandContext) Err() error
- func (t *CommandContext) Logger() zerolog.Logger
- func (t *CommandContext) Requester() tempest.Snowflake
- func (t *CommandContext) RequesterRoles() []tempest.Snowflake
- func (t *CommandContext) SendRequesterPrivateMessage(msg string) (tempest.Message, error)
- func (t *CommandContext) Value(key interface{}) interface{}
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) Done ¶
func (t *CommandContext) Done() <-chan struct{}
func (*CommandContext) EditResponse ¶
func (t *CommandContext) EditResponse(message string, ephemeral bool) 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{}
Click to show internal directories.
Click to hide internal directories.