solved

package
v0.0.0-...-5cb0a9e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "solved"
	AutoClose = "auto-close"
)

Variables

View Source
var Command = &discordgo.ApplicationCommand{
	Name:        Name,
	Description: "Close and mark a forum post as solved.",
	Options: []*discordgo.ApplicationCommandOption{
		{
			Required:    false,
			Name:        AutoClose,
			Description: "If the 'auto-close' option isn't specified, the post will remain open after using the command.",
			Type:        discordgo.ApplicationCommandOptionInteger,
			Choices: []*discordgo.ApplicationCommandOptionChoice{
				{
					Name:  "Close right after",
					Value: 1,
				},
				{
					Name:  "In 1 hour",
					Value: 60,
				},
				{
					Name:  "In 24 hours",
					Value: 60 * 24,
				},
				{
					Name:  "In 3 days",
					Value: 60 * 24 * 3,
				},
				{
					Name:  "In a week",
					Value: 60 * 24 * 7,
				},
			},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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