discord embed changes

This commit is contained in:
Sotirios Pupakis
2025-09-07 05:13:06 +02:00
parent 557eedf02f
commit 64d9f51f19
7 changed files with 58 additions and 53 deletions

View File

@@ -16,9 +16,16 @@ type CustomEmbed struct {
Timestamp time.Time `json:"timestamp,omitempty"`
Color int `json:"color,omitempty"`
Image CustomImage `json:"image,omitempty"` // Your new field
Fields []CustomEmbedField `json:"fields,omitempty"`
// You can add other fields like Footer, Author, Fields as needed.
}
type CustomEmbedField struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Inline bool `json:"inline,omitempty"`
}
// CustomHook is the top-level structure for the webhook payload.
type CustomHook struct {
Username string `json:"username,omitempty"`