Documentation
¶
Index ¶
- func IsValidChannelID(channelID string) bool
- func IsValidGuildID(guildID string) bool
- func NormalizeInput(input string) string
- func RespondToInteraction(s *discordgo.Session, i *discordgo.InteractionCreate, message string, ...)
- func RespondWithEmbed(s *discordgo.Session, i *discordgo.InteractionCreate, ...)
- func SanitizeAnnouncement(input string) string
- func SanitizeInput(input string) string
- func SendFollowupMessage(s *discordgo.Session, i *discordgo.InteractionCreate, message string, ...)
- func TruncateString(s string, maxLength int) string
- func UpdateMessageWithEmbed(s *discordgo.Session, i *discordgo.InteractionCreate, ...)
- func ValidateAPIKey(apiKey string, provider string) error
- func ValidateAccountTitle(title string) error
- func ValidateActivisionID(id string) error
- func ValidateCaptchaProvider(provider string) (string, error)
- func ValidateCheckInterval(interval int) error
- func ValidateDiscordUserID(userID string) error
- func ValidateEmbed(embed *discordgo.MessageEmbed) error
- func ValidateEmbedField(field *discordgo.MessageEmbedField) error
- func ValidateMessage(content string) error
- func ValidateNotificationInterval(interval float64) error
- func ValidateNotificationType(notificationType string) (string, error)
- func ValidateTimeRange(start, end time.Time) error
- func WithTransaction(db *gorm.DB, fn func(*gorm.DB) error) error
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidChannelID ¶ added in v1.2.0
func IsValidGuildID ¶ added in v1.2.0
func NormalizeInput ¶ added in v1.2.0
func RespondToInteraction ¶
func RespondWithEmbed ¶
func RespondWithEmbed(s *discordgo.Session, i *discordgo.InteractionCreate, embed *discordgo.MessageEmbed, ephemeral bool)
func SanitizeAnnouncement ¶
func SanitizeInput ¶
func SendFollowupMessage ¶
func TruncateString ¶ added in v1.2.0
func UpdateMessageWithEmbed ¶
func UpdateMessageWithEmbed(s *discordgo.Session, i *discordgo.InteractionCreate, embed *discordgo.MessageEmbed)
func ValidateAPIKey ¶ added in v1.2.0
func ValidateAccountTitle ¶ added in v1.2.0
func ValidateActivisionID ¶ added in v1.2.0
func ValidateCaptchaProvider ¶ added in v1.2.0
func ValidateCheckInterval ¶ added in v1.2.0
func ValidateDiscordUserID ¶ added in v1.2.0
func ValidateEmbed ¶ added in v1.2.0
func ValidateEmbed(embed *discordgo.MessageEmbed) error
func ValidateEmbedField ¶ added in v1.2.0
func ValidateEmbedField(field *discordgo.MessageEmbedField) error
func ValidateMessage ¶ added in v1.2.0
func ValidateNotificationInterval ¶ added in v1.2.0
func ValidateNotificationType ¶ added in v1.2.0
func ValidateTimeRange ¶ added in v1.2.0
Types ¶
type ValidationError ¶ added in v1.2.0
func (ValidationError) Error ¶ added in v1.2.0
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.