Documentation ¶
Index ¶
- Constants
- func ErrorResponseEdit(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.Message, error)
- func ErrorResponseEditValidation(s *discordgo.Session, i *discordgo.InteractionCreate, content string) (*discordgo.Message, error)
- func ErrorResponseInitial(s *discordgo.Session, i *discordgo.InteractionCreate, privacy RESPONSE_PRIVACY) error
- func ErrorResponseInitialValidation(s *discordgo.Session, i *discordgo.InteractionCreate, content string, ...) error
- func InitialInteractionResponse(s *discordgo.Session, i *discordgo.InteractionCreate, ...) error
- func InitialLoadingResponse(s *discordgo.Session, i *discordgo.InteractionCreate, privacy RESPONSE_PRIVACY) error
- func InteractionEdit(s *discordgo.Session, i *discordgo.InteractionCreate, ...) (*discordgo.Message, error)
- func NewEmbed(title, description, footer string) *discordgo.MessageEmbed
- func NewGenerationMetadataEmbed(modelName string) *discordgo.MessageEmbed
- func NewHelpEmbed() *discordgo.MessageEmbed
- func NewImageEmbed(url string) *discordgo.MessageEmbed
- func NewVideoEmbed(url string) *discordgo.MessageEmbed
- type InteractionResponseOptions
- type RESPONSE_PRIVACY
Constants ¶
View Source
const EMBED_PURPLE = 11437547
View Source
const EMBED_TRANSPARENT = 2829617
Not really transparent, but appears so on dark theme
Variables ¶
This section is empty.
Functions ¶
func ErrorResponseEdit ¶
func ErrorResponseInitial ¶
func ErrorResponseInitial(s *discordgo.Session, i *discordgo.InteractionCreate, privacy RESPONSE_PRIVACY) error
func ErrorResponseInitialValidation ¶
func ErrorResponseInitialValidation(s *discordgo.Session, i *discordgo.InteractionCreate, content string, privacy RESPONSE_PRIVACY) error
func InitialInteractionResponse ¶
func InitialInteractionResponse(s *discordgo.Session, i *discordgo.InteractionCreate, options *InteractionResponseOptions) error
For the first response to an interaction
func InitialLoadingResponse ¶
func InitialLoadingResponse(s *discordgo.Session, i *discordgo.InteractionCreate, privacy RESPONSE_PRIVACY) error
func InteractionEdit ¶
func InteractionEdit(s *discordgo.Session, i *discordgo.InteractionCreate, options *InteractionResponseOptions) (*discordgo.Message, error)
For edits to an interaction response
func NewEmbed ¶
func NewEmbed(title, description, footer string) *discordgo.MessageEmbed
func NewGenerationMetadataEmbed ¶
func NewGenerationMetadataEmbed(modelName string) *discordgo.MessageEmbed
func NewHelpEmbed ¶
func NewHelpEmbed() *discordgo.MessageEmbed
func NewImageEmbed ¶
func NewImageEmbed(url string) *discordgo.MessageEmbed
func NewVideoEmbed ¶
func NewVideoEmbed(url string) *discordgo.MessageEmbed
Types ¶
type InteractionResponseOptions ¶
type InteractionResponseOptions struct { Content *string EmbedTitle string EmbedContent string ImageURLs []string ImageURLsEmbed []string VideoURLs []string Privacy RESPONSE_PRIVACY Embeds []*discordgo.MessageEmbed ActionRowOne []*components.SCDiscordComponent }
func InsufficientCreditsResponseOptions ¶
func InsufficientCreditsResponseOptions(needed, have int32) *InteractionResponseOptions
When a user does not have enough credits to perform an action
Click to show internal directories.
Click to hide internal directories.