message

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func Format(text string, messageTypes ...Type) string

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 FormatDefault(format string, a ...any) string

func FormatError

func FormatError(format string, a ...any) string

func FormatInfo

func FormatInfo(format string, a ...any) string

func FormatLoading

func FormatLoading(format string, a ...any) string

func FormatSuccess

func FormatSuccess(format string, a ...any) string

func FormatWarning

func FormatWarning(format string, a ...any) string

Types

type Type

type Type int

Jump to

Keyboard shortcuts

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