forms

package
v0.0.0-...-c4580cc Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenModalButton          = "f-modal-button"
	Modal                    = "f-modal"
	ModeratorAcceptButton    = "fma"
	ModeratorRejectButton    = "fmr"
	ModeratorBanButton       = "fmb"
	ModeratorBanConfirmModal = "fmb-modal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Forms

type Forms struct {
	// contains filtered or unexported fields
}

func NewForms

func NewForms(opts Options) (*Forms, error)

func (*Forms) ModAcceptButtonClicked

func (f *Forms) ModAcceptButtonClicked(s *dgo.Session, i *dgo.InteractionCreate, customId *components.CustomID) error

func (*Forms) ModBanButtonClicked

func (f *Forms) ModBanButtonClicked(s *dgo.Session, i *dgo.InteractionCreate, customId *components.CustomID) error

func (*Forms) ModBanModalSubmit

func (f *Forms) ModBanModalSubmit(s *dgo.Session, i *dgo.InteractionCreate, customId *components.CustomID) error

func (*Forms) ModRejectButtonClicked

func (f *Forms) ModRejectButtonClicked(s *dgo.Session, i *dgo.InteractionCreate, _ *components.CustomID) error

func (*Forms) ModalOpenButtonClicked

func (f *Forms) ModalOpenButtonClicked(s *dgo.Session, i *dgo.InteractionCreate, customId *components.CustomID) error

func (*Forms) ModalSubmitted

func (f *Forms) ModalSubmitted(s *dgo.Session, i *dgo.InteractionCreate, customId *components.CustomID) error

type Options

type Options struct {
	Cfg      yaml.Forms
	AutoMod  *auto_mod.AutoMod
	Markdown *markdown.Markdown
	Session  *dgo.Session
}

Jump to

Keyboard shortcuts

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