responses

package
v0.0.0-...-bfbcaf2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 ErrorResponseEditValidation

func ErrorResponseEditValidation(s *discordgo.Session, i *discordgo.InteractionCreate, content string) (*discordgo.Message, error)

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

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
	EmbedFooter    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

type RESPONSE_PRIVACY

type RESPONSE_PRIVACY int
const (
	PRIVATE RESPONSE_PRIVACY = iota
	PUBLIC
)

Jump to

Keyboard shortcuts

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