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:
parent
f068e29af0
commit
610c19efea
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue