model

package
v0.0.124 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: GPL-3.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package model (directory webhookcompat/model) is a frozen copy of the attachment types of main's classic webhook payload; see the parent package. Never edit these types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageAttachment

type MessageAttachment struct {
	Fallback    string                   `json:"fallback,omitempty"`
	Color       string                   `json:"color,omitempty"`
	Pretext     string                   `json:"pretext,omitempty"`
	Text        string                   `json:"text,omitempty"`
	AuthorName  string                   `json:"author_name,omitempty"`
	AuthorLink  string                   `json:"author_link,omitempty"`
	AuthorIcon  string                   `json:"author_icon,omitempty"`
	Title       string                   `json:"title,omitempty"`
	TitleLink   string                   `json:"title_link,omitempty"`
	Fields      []MessageAttachmentField `json:"fields,omitempty"`
	ImageURL    string                   `json:"image_url,omitempty"`
	ImageWidth  int                      `json:"image_width,omitempty"`
	ImageHeight int                      `json:"image_height,omitempty"`
	ThumbURL    string                   `json:"thumb_url,omitempty"`
	Footer      string                   `json:"footer,omitempty"`
	FooterIcon  string                   `json:"footer_icon,omitempty"`
}

MessageAttachment is main's attachment, field for field (no blocks).

type MessageAttachmentField

type MessageAttachmentField struct {
	Title string `json:"title,omitempty"`
	Value string `json:"value,omitempty"`
	Short bool   `json:"short,omitempty"`
}

MessageAttachmentField is main's attachment field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL