Godiscord
A GoLang package for Embeds in Discord
Install / Use
/learn @aiomonitors/GodiscordREADME
godiscord
A package for the creation and deliver of embeds for Discord
Usage:
package main
import "github.com/aiomonitors/godiscord"
func main() {
//Create a new embed object
embed := godiscord.NewEmbed("Title", "Description", "URL")
//Creates a new field and adds it to the embed
//boolean represents whether the field is inline or not
embed.AddField("This is a field", "This is the value", true)
//Sets the thumbail of the embed
embed.SetThumbnail("URL")
//Sets image of embed
embed.SetImage("URL")
//Sets color of embed given hexcode
embed.SetColor("#F1B379")
//Sets author of embed given name, icon url, and URL
//Can pass in empty string for IconURL or URL
embed.SetAuthor("Name", "URL", "IconURL")
//also valid
embed.SetAuthor("Name", "URL", "")
//Sets footer of embed given name and IconURL
//Can pass in empty string for IconURL
embed.SetFooter("Text", "IconURL")
//also valid
embed.SetFooter("Text", "")
//Send embed to given webhook
embed.SendToWebhook("Webhook URL")
}
For any questions or problems regarding this package contact me at: Twitter
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
