Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleError ¶
func ConsoleError(err error)
ConsoleError memberikan output error kedalam console
func ConsoleFatal ¶
func ConsoleFatal(err error)
ConsoleFatal memberikan output fatal kedalam console dan menghentikan program
func ConsoleInfo ¶
func ConsoleInfo(msg ...string)
ConsoleInfo memberikan output info kedalam console
func NewDiscordWebhook ¶
func NewDiscordWebhook(url string) *discordWebhook
NewDiscordWebhook membuat objek discord webhook baru
Types ¶
type EmbedWebhookMessage ¶
type IncomingWebhookMessage ¶
type IncomingWebhookMessage struct { Content string `json:"content,omitempty"` Username string `json:"username,omitempty"` AvatarUrl string `json:"avatar_url,omitempty"` TTS bool `json:"tts,omitempty"` Embeds []EmbedWebhookMessage `json:"embeds,omitempty"` }
IncomingWebhookMessage merupakan body request untuk incoming webhook discord, detail https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html
Click to show internal directories.
Click to hide internal directories.