Documentation ¶
Index ¶
- func CreateServerInfoEmbed(info *aternos.ServerInfo) *discordgo.MessageEmbed
- func CreateServerStatusNotificationEmbed(info *aternos.ServerInfo) (*discordgo.MessageEmbed, error)
- func Format(text string, messageTypes ...Type) string
- func FormatDefault(format string, a ...any) string
- func FormatError(format string, a ...any) string
- func FormatInfo(format string, a ...any) string
- func FormatLoading(format string, a ...any) string
- func FormatSuccess(format string, a ...any) string
- func FormatWarning(format string, a ...any) string
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServerInfoEmbed ¶
func CreateServerInfoEmbed(info *aternos.ServerInfo) *discordgo.MessageEmbed
func CreateServerStatusNotificationEmbed ¶
func CreateServerStatusNotificationEmbed(info *aternos.ServerInfo) (*discordgo.MessageEmbed, error)
func Format ¶
Format creates a message string optionally prefixed with an emoji based on the given message type.
Defaults to a plain text message.
func FormatDefault ¶
func FormatError ¶
func FormatInfo ¶
func FormatLoading ¶
func FormatSuccess ¶
func FormatWarning ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.