Versions in this module Expand all Collapse all v1 v1.0.0 Sep 2, 2023 Changes in this version + const Invisible + func CommandDelete(discord *discordgo.Session, guildID string, name string) error + func FindValue(interaction *discordgo.InteractionCreate, key string) (value []interface{}) + type Command struct + Discord []*discordgo.ApplicationCommand + func (c *Command) AddChoice(name string, value interface{}) *Command + func (c *Command) AddCommand(cmd, description string, perm int64) *Command + func (c *Command) AddOption(ops *discordgo.ApplicationCommandOption) *Command + func (c *Command) CommandCreate(discord *discordgo.Session, guildID string) + func (c *Command) CommandLast() int + func (c *Command) OptionsLast() int + type CommandType int8 + const ComponentCommand + const SlashCommand + const SubmitCommand + type Component struct + Discord []discordgo.ActionsRow + func (c *Component) AddButton(data discordgo.Button) *Component + func (c *Component) AddInput(data discordgo.TextInput) *Component + func (c *Component) AddLine() *Component + func (c *Component) AddSelectMenu(data discordgo.SelectMenu) *Component + func (c *Component) CompArrayLast(n int) int + func (c *Component) Parse() (result []discordgo.MessageComponent) + type InteractionResponse struct + Discord *discordgo.Session + Interaction *discordgo.Interaction + Response *discordgo.InteractionResponse + func (i *InteractionResponse) Edit(newData *discordgo.WebhookEdit) (*discordgo.Message, error) + func (i *InteractionResponse) Follow(newData *discordgo.WebhookParams) (*discordgo.Message, error) + func (i *InteractionResponse) Reply(resData *discordgo.InteractionResponseData) error + func (i *InteractionResponse) Thinking(invisible bool) error + func (i *InteractionResponse) Window(title, customID string, comp *Component) error + type InteractionStruct struct + ChannelData *discordgo.Channel + ChannelID string + ChannelName string + Check CommandType + Command discordgo.ApplicationCommandInteractionData + CommandOptions map[string]OptionData + Component discordgo.MessageComponentInteractionData + FormatText string + GuildData *discordgo.Guild + GuildID string + GuildName string + PostData []PostData + Submit discordgo.ModalSubmitInteractionData + Type discordgo.InteractionType + UserData *discordgo.User + UserID string + UserName string + UserNum string + func InteractionViewAndEdit(discord *discordgo.Session, i *discordgo.InteractionCreate) (iData InteractionStruct) + type OptionData struct + func (data OptionData) AttachmentValue(i InteractionStruct) *discordgo.MessageAttachment + type OptionType int8 + const TypeBool + const TypeChannel + const TypeFile + const TypeFloat + const TypeInt + const TypeMention + const TypeRole + const TypeString + const TypeUser + type PostData struct + CustomID string + Value string + type ReturnType int8 + const ReplyMessage + const ReplyThiking + const Window