form

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	True  = Bool(true)
	False = Bool(false)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool bool

func ParseBool

func ParseBool(s string) Bool

func (Bool) String

func (b Bool) String() string

type Form

type Form interface {
	Create() discord.MessageCreate
	Handle(event *events.ComponentInteractionCreate) error
}

type Manager

type Manager interface {
	// TODO: better name
	Send(channelID snowflake.ID, form Form) error

	// as same as the command manager, we need to handle the interaction
	OnComponentInteractionCreate(event *events.ComponentInteractionCreate)
}

func NewManager

func NewManager(rest rest.Channels) Manager

Jump to

Keyboard shortcuts

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