commands

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCommandData

type ApplicationCommandData struct {
	Id       discord.Snowflake           `json:"id"`
	Name     string                      `json:"name"`
	Type     ApplicationCommandType      `json:"type"`
	Resolved *discord.ResolvedData       `json:"resolved,omitempty"`
	Options  *[]ApplicationCommandOption `json:"options,omitempty"`
	GuildId  *discord.Snowflake          `json:"guild_id,omitempty"`
	TargetId *discord.Snowflake          `json:"target_id,omitempty"`
}

type ApplicationCommandOption

type ApplicationCommandOption struct {
	Name    string                       `json:"name"`
	Type    ApplicationCommandOptionType `json:"type"`
	Value   *interface{}                 `json:"value,omitempty"`
	Options []ApplicationCommandOption   `json:"options,omitempty"`
	Focused bool                         `json:"focused,omitempty"`
}

type ApplicationCommandOptionType

type ApplicationCommandOptionType uint8
const (
	SubCommandType ApplicationCommandOptionType = iota + 1
	SubCommandGroupType
	StringType
	IntegerType
	BooleanType
	UserType
	ChannelType
	RoleType
	MentionableType
	NumberType
	AttachmentType
)

type ApplicationCommandType

type ApplicationCommandType uint8
const (
	ChatInput ApplicationCommandType = iota + 1 // (slash-command)
	User
	Message
)

type AutoCompleteChoice

type AutoCompleteChoice struct {
	Name              string             `json:"name"`
	NameLocalizations *map[string]string `json:"name_localizations,omitempty"`
	Value             interface{}        `json:"value"`
}

Jump to

Keyboard shortcuts

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