ratz/src/chatservers/commands/interactive_components.go

type CommandComponentHandler

type ComponentStyle

type ComponentType

type ButtonStyle

type DropdownStyle

const ComponentTypeButton

const ComponentTypeTextBox

const ComponentTypeParagraphBox

const ComponentTypeForm

const ComponentTypeSelectBox

const ComponentTypeSelectBoxUsers

const ComponentTypeSelectBoxRoles

const ComponentTypeSelectBoxChannels

const PrimaryButton

const SecondaryButton

const SuccessButton

const DangerButton

const LinkButton

const SelectBoxStyleValuesSingle

const SelectBoxStyleValuesMulti

const SelectBoxStyleUsersSingle

const SelectBoxStyleUsersMulti

const SelectBoxStyleRolesSingle

const SelectBoxStyleRolesMulti

const SelectBoxStyleChansSingle

const SelectBoxStyleChansMulti

func NewCommandButton(label string, emojiId string, style ButtonStyle, handler CommandComponentHandler) CommandButton {}

func NewFormButton(label string, emojiId string, style ButtonStyle, handler CommandComponentHandler) CommandButton {}

type CommandButton

func (c *CommandButton) Options() []ComponentOption {}

func (c *CommandButton) Emoiji() string {}

func (c *CommandButton) Style() ComponentStyle {}

func (c *BaseComponent) Type() ComponentType {}

func (c *BaseComponent) Handler() CommandComponentHandler {}

type BaseComponent

func (c *BaseComponent) ID() string {}

func (c *BaseComponent) Label() string {}

type CommandComponent

type ComponentOption

func (o ComponentOption) Label() string       {}

func (o ComponentOption) Description() string {}

func (o ComponentOption) Value() interface{}

func (o ComponentOption) Emoji() string       {}

func (o ComponentOption) IsDefault() bool     {}

func (o ComponentOption) Enabled() bool       {}

type Button