Merge pull request #794 from redbluescreen/webhook-allowedmentions

Add AllowedMentions for webhooks
This commit is contained in:
Carson Hoffman 2020-07-25 17:42:26 -04:00 committed by GitHub
commit c8139ccde3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1071,12 +1071,13 @@ const (
// WebhookParams is a struct for webhook params, used in the WebhookExecute command. // WebhookParams is a struct for webhook params, used in the WebhookExecute command.
type WebhookParams struct { type WebhookParams struct {
Content string `json:"content,omitempty"` Content string `json:"content,omitempty"`
Username string `json:"username,omitempty"` Username string `json:"username,omitempty"`
AvatarURL string `json:"avatar_url,omitempty"` AvatarURL string `json:"avatar_url,omitempty"`
TTS bool `json:"tts,omitempty"` TTS bool `json:"tts,omitempty"`
File string `json:"file,omitempty"` File string `json:"file,omitempty"`
Embeds []*MessageEmbed `json:"embeds,omitempty"` Embeds []*MessageEmbed `json:"embeds,omitempty"`
AllowedMentions *MessageAllowedMentions `json:"allowed_mentions,omitempty"`
} }
// MessageReaction stores the data for a message reaction. // MessageReaction stores the data for a message reaction.