Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webhook ¶
type Webhook struct { Content string `json:"content"` Username string `json:"username,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` TTS bool `json:"tts,omitempty"` Embeds []*embed.Embed `json:"embeds"` AllowedMentions *embed.AllowedMentions `json:"allowed_mentions"` }
Webhook is a Discord webhook
func (*Webhook) Request ¶
Request returns the Webhook as an *http.Request payload
Useful if using with a custom http.Client
type WebhookEdit ¶
type WebhookEdit struct { Content string `json:"content"` Embeds []*embed.Embed `json:"embeds"` AllowedMentions *embed.AllowedMentions `json:"allowed_mentions"` }
WebhookEdit https://discord.com/developers/docs/resources/webhook#edit-webhook-message
Click to show internal directories.
Click to hide internal directories.