Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webhook ¶
type Webhook struct {
// You can get this from the channel integration setting menu.
Url string `json:"-"`
Content string `json:"content,omitempty"`
ThreadId string `json:"-"`
// Changes the shown username of webhook's message.
Username string `json:"username,omitempty"`
// Changes the shown avatar of webhook's message.
AvatarURL string `json:"avatar_url,omitempty"`
Tts bool `json:"tts,omitempty"`
Files []string `json:"-"` // Paths to files to upload
AllowEveryone bool `json:"-"`
// THIS FIELD IS GOING TO GET OVERWRITTEN cry about it lmao
AllowedMentions map[string][]string `json:"allowed_mentions,omitempty"`
}
A webhook is a struct that contains the information needed to execute a webhook.
Click to show internal directories.
Click to hide internal directories.