discord embed changes
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user