From 610c19efea80d002831c5cdca25b58c8ae3982f9 Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Mon, 20 Apr 2020 16:33:01 -0700 Subject: [PATCH] API: Applied earlier Files change to Webhooks --- api/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/send.go b/api/send.go index 9ee47a1..e1a22a8 100644 --- a/api/send.go +++ b/api/send.go @@ -183,7 +183,7 @@ func (c *Client) ExecuteWebhook( wait bool, // if false, then nil returned for *Message. data ExecuteWebhookData) (*discord.Message, error) { - if data.Content == "" && len(data.Embeds) == 0 { + if data.Content == "" && len(data.Embeds) == 0 && len(data.Files) == 0 { return nil, ErrEmptyMessage }