actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(action ActionType, client rest.Rest, input *Input)

Types

type ActionType

type ActionType string
const (
	ActionAlert   ActionType = "alert"
	ActionBan     ActionType = "ban"
	ActionDelete  ActionType = "delete"
	ActionKick    ActionType = "kick"
	ActionTimeout ActionType = "timeout"
)

type Input

type Input struct {
	// Same as the variables, but for cleaner use in the code
	RuleName  string
	GuildID   string
	ChannelID string
	MessageID string
	UserID    string

	AlertChannelID  string
	AlertMessage    string
	TimeoutDuration time.Duration
	BanKickReason   string

	Variables map[string]any
}

Jump to

Keyboard shortcuts

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