Documentation ¶
Index ¶
- Constants
- Variables
- func ComplexResponse(d *discordgo.InteractionResponseData) *discordgo.InteractionResponse
- func ContentResponse(c string, e bool) *discordgo.InteractionResponse
- func EmptyResponse() *discordgo.InteractionResponse
- func ErrorEmbed(errMessage string) *discordgo.MessageEmbed
- func OnInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
- func UpdateResponse(i *discordgo.InteractionResponseData) *discordgo.InteractionResponse
- type Embed
- func (e *Embed) AddField(name, value string) *Embed
- func (e *Embed) InlineAllFields() *Embed
- func (e *Embed) SetAuthor(args ...string) *Embed
- func (e *Embed) SetColor(clrs ...string) *Embed
- func (e *Embed) SetDescription(description string) *Embed
- func (e *Embed) SetFooter(args ...string) *Embed
- func (e *Embed) SetImage(args ...string) *Embed
- func (e *Embed) SetIntColor(clr int) *Embed
- func (e *Embed) SetThumbnail(args ...string) *Embed
- func (e *Embed) SetTimestamp() *Embed
- func (e *Embed) SetTitle(name string) *Embed
- func (e *Embed) SetURL(URL string) *Embed
- func (e *Embed) Truncate() *Embed
- func (e *Embed) TruncateDescription() *Embed
- func (e *Embed) TruncateFields() *Embed
- func (e *Embed) TruncateFooter() *Embed
- func (e *Embed) TruncateTitle() *Embed
- type Modal
Constants ¶
View Source
const ( EmbedLimitTitle = 256 EmbedLimitDescription = 2048 EmbedLimitFieldValue = 1024 EmbedLimitFieldName = 256 EmbedLimitField = 25 EmbedLimit = 4000 )
Constants for message embed character limits
Variables ¶
View Source
var Components = make(map[string]func(*discordgo.Session, *discordgo.InteractionCreate) *discordgo.InteractionResponse)
Functions ¶
func ComplexResponse ¶
func ComplexResponse(d *discordgo.InteractionResponseData) *discordgo.InteractionResponse
func ContentResponse ¶
func ContentResponse(c string, e bool) *discordgo.InteractionResponse
func EmptyResponse ¶
func EmptyResponse() *discordgo.InteractionResponse
func ErrorEmbed ¶
func ErrorEmbed(errMessage string) *discordgo.MessageEmbed
func OnInteraction ¶
func OnInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
func UpdateResponse ¶
func UpdateResponse(i *discordgo.InteractionResponseData) *discordgo.InteractionResponse
Types ¶
type Embed ¶
type Embed struct {
*discordgo.MessageEmbed
}
Embed ...
func (*Embed) InlineAllFields ¶
InlineAllFields sets all fields in the embed to be inline
func (*Embed) SetDescription ¶
SetDescription [desc]
func (*Embed) SetIntColor ¶
func (*Embed) TruncateDescription ¶
TruncateDescription ...
func (*Embed) TruncateFields ¶
TruncateFields truncates fields that are too long
Click to show internal directories.
Click to hide internal directories.