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 ¶
Click to show internal directories.
Click to hide internal directories.