1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-21 03:57:26 +00:00

API: Applied earlier Files change to Webhooks

This commit is contained in:
diamondburned (Forefront) 2020-04-20 16:33:01 -07:00
parent f068e29af0
commit 610c19efea

View file

@ -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
}