From ea94122b5743617aea27e68d53aaf329c9f294b2 Mon Sep 17 00:00:00 2001 From: redbluescreen Date: Thu, 23 Jul 2020 19:11:21 +0300 Subject: [PATCH] Add AllowedMentions field to WebhookParams --- structs.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/structs.go b/structs.go index 33c5862..aefda59 100644 --- a/structs.go +++ b/structs.go @@ -1071,12 +1071,13 @@ const ( // WebhookParams is a struct for webhook params, used in the WebhookExecute command. type WebhookParams struct { - Content string `json:"content,omitempty"` - Username string `json:"username,omitempty"` - AvatarURL string `json:"avatar_url,omitempty"` - TTS bool `json:"tts,omitempty"` - File string `json:"file,omitempty"` - Embeds []*MessageEmbed `json:"embeds,omitempty"` + Content string `json:"content,omitempty"` + Username string `json:"username,omitempty"` + AvatarURL string `json:"avatar_url,omitempty"` + TTS bool `json:"tts,omitempty"` + File string `json:"file,omitempty"` + Embeds []*MessageEmbed `json:"embeds,omitempty"` + AllowedMentions *MessageAllowedMentions `json:"allowed_mentions,omitempty"` } // MessageReaction stores the data for a message reaction.