| 1 | package notifiarrscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/ |
| 2 | |
| 3 | // Field represents a field in the Discord embed. |
| 4 | type Fieldscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/Field# struct { |
| 5 | Titlescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/Field#Title. string `json:"title"` // Field title |
| 6 | Textscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/Field#Text. string `json:"text"` // Field text content |
| 7 | Inlinescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/Field#Inline. bool `json:"inline"` // Whether the field is inline |
| 8 | } |
| 9 | |
| 10 | // NotificationPayload represents the main payload structure for Notifiarr API. |
| 11 | type NotificationPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationPayload# struct { |
| 12 | Notificationscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationPayload#Notification. NotificationDatascip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationData# `json:"notification"` |
| 13 | Discordscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationPayload#Discord. *DiscordPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload# `json:"discord,omitempty"` |
| 14 | } |
| 15 | |
| 16 | // NotificationData contains the notification metadata. |
| 17 | type NotificationDatascip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationData# struct { |
| 18 | Updatescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationData#Update. *bool `json:"update,omitempty"` // Optional boolean for updating existing messages |
| 19 | Namescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationData#Name. string `json:"name"` // Required name of the custom app/script |
| 20 | Eventscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/NotificationData#Event. string `json:"event,omitempty"` // Optional unique ID for this notification |
| 21 | } |
| 22 | |
| 23 | // DiscordPayload contains Discord-specific configuration for notifications. |
| 24 | type DiscordPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload# struct { |
| 25 | Colorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload#Color. string `json:"color,omitempty"` // Optional color as 6-digit HTML color code |
| 26 | Pingscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload#Ping. *PingPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/PingPayload# `json:"ping,omitempty"` // Optional ping configuration |
| 27 | Imagesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload#Images. *ImagePayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/ImagePayload# `json:"images,omitempty"` // Optional image configuration |
| 28 | Textscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload#Text. *TextPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload# `json:"text,omitempty"` // Optional text configuration |
| 29 | IDsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/DiscordPayload#IDs. *IDPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/IDPayload# `json:"ids,omitempty"` // Optional IDs configuration |
| 30 | } |
| 31 | |
| 32 | // PingPayload contains ping configuration for Discord notifications. |
| 33 | type PingPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/PingPayload# struct { |
| 34 | PingUserscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/PingPayload#PingUser. *int `json:"pingUser,omitempty"` // Optional user ID to ping |
| 35 | PingRolescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/PingPayload#PingRole. *int `json:"pingRole,omitempty"` // Optional role ID to ping |
| 36 | } |
| 37 | |
| 38 | // ImagePayload contains image URLs for Discord notifications. |
| 39 | type ImagePayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/ImagePayload# struct { |
| 40 | Thumbnailscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/ImagePayload#Thumbnail. string `json:"thumbnail,omitempty"` // Optional thumbnail URL |
| 41 | Imagescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/ImagePayload#Image. string `json:"image,omitempty"` // Optional image URL |
| 42 | } |
| 43 | |
| 44 | // TextPayload contains text content for Discord notifications. |
| 45 | type TextPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload# struct { |
| 46 | Titlescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Title. string `json:"title,omitempty"` // Optional notification title |
| 47 | Iconscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Icon. string `json:"icon,omitempty"` // Optional icon URL |
| 48 | Contentscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Content. string `json:"content,omitempty"` // Optional content |
| 49 | Descriptionscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Description. string `json:"description,omitempty"` // Optional description |
| 50 | Fieldsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Fields. []Fieldscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/Field# `json:"fields,omitempty"` // Optional fields array |
| 51 | Footerscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/TextPayload#Footer. string `json:"footer,omitempty"` // Optional footer text |
| 52 | } |
| 53 | |
| 54 | // IDPayload contains required IDs for Discord notifications. |
| 55 | type IDPayloadscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/IDPayload# struct { |
| 56 | Channelscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/specialized/notifiarr`/IDPayload#Channel. int `json:"channel"` // Required channel ID |
| 57 | } |