state

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	SelectsBlockID string
	Fields         map[string]string
}

Container holds message state.

func ExtractSlackState

func ExtractSlackState(state *slack.BlockActionStates) *Container

ExtractSlackState extracts slack state into generic container data.

func (*Container) GetField

func (c *Container) GetField(name string) string

GetField returns value for a given field.

func (*Container) GetSelectsBlockID

func (c *Container) GetSelectsBlockID() string

GetSelectsBlockID returns select block ID.

Jump to

Keyboard shortcuts

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