Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessory ¶
type Accessory struct {
Type string `json:"type"`
Image string `json:"image_url"`
Alt string `json:"alt_text"`
}
func NewAccessory ¶
type Actions ¶
type Actions struct {
Type string `json:"type"`
BlockID string `json:"block_id,omitempty"`
Elements []Element `json:"elements"`
}
func NewActions ¶
type ButtonElement ¶
type CommandHandler ¶
type CommandHandler func(context.Context, SlashPayload) Response
type Context ¶ added in v0.0.10
func NewContext ¶ added in v0.0.10
func NewContext() Context
func (Context) AddElement ¶ added in v0.0.10
type Image ¶ added in v0.0.15
type InteractHandler ¶
type InteractHandler func(context.Context, InteractivePayload) Response
type InteractiveAction ¶
type InteractivePayload ¶
type InteractivePayload struct {
User struct {
ID string `json:"id"`
} `json:"user"`
Container struct {
ChannelID string `json:"channel_id"`
} `json:"container"`
Type string `json:"type"`
ResponseURL string `json:"response_url"`
Actions []InteractiveAction `json:"actions"`
}
type Response ¶
type Response struct {
ResponseType string `json:"response_type,omitempty"`
Text string `json:"text,omitempty"`
Blocks []Block `json:"blocks,omitempty"`
ReplaceOriginal bool `json:"replace_original,omitempty"`
DeleteOriginal bool `json:"delete_original,omitempty"`
}
func NewEphemeralMessage ¶
func NewResponse ¶ added in v0.0.5
func (Response) WithDeleteOriginal ¶ added in v0.0.6
func (Response) WithReplaceOriginal ¶ added in v0.0.6
type Section ¶
type Section struct {
Accessory *Accessory `json:"accessory,omitempty"`
Text Text `json:"text"`
Type string `json:"type"`
Fields []Text `json:"fields,omitempty"`
}
func NewSection ¶
func (Section) WithAccessory ¶ added in v0.0.5
type Service ¶ added in v0.3.2
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *Config, command CommandHandler, interact InteractHandler, tracerProvider trace.TracerProvider) Service
func (Service) NewServeMux ¶ added in v0.4.7
type SlashPayload ¶
Click to show internal directories.
Click to hide internal directories.