iform

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	HasDeleteButton bool
	Finalized       bool

	Scope           rule.Scope
	ScopeIdentifier snowflake.ID

	Enabled             form.Bool
	NotificationChannel extstd.Option[snowflake.ID]
	ChannelFormat       extstd.Option[rule.ChannelFormat]

	Privacy        extstd.Option[rule.History]
	UsernameFormat extstd.Option[rule.UserFormat]
	// contains filtered or unexported fields
}

func CategoryRule

func CategoryRule(owner snowflake.ID, ruleManager rule.Repository, locale discord.Locale, categoryId snowflake.ID) *Rule

func ChannelRule

func ChannelRule(owner snowflake.ID, ruleManager rule.Repository, locale discord.Locale, channelId snowflake.ID) *Rule

func GuildRule

func GuildRule(owner snowflake.ID, ruleManager rule.Repository, locale discord.Locale, guildID snowflake.ID) *Rule

func (*Rule) Apply

func (s *Rule) Apply(rule rule.Rule)

func (*Rule) Create

func (s *Rule) Create() discord.MessageCreate

func (*Rule) Handle

func (s *Rule) Handle(event *events.ComponentInteractionCreate) error

Jump to

Keyboard shortcuts

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