diff options
Diffstat (limited to 'bridge/discord')
-rw-r--r-- | bridge/discord/discord.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index bb3fcb82..cd06eeaf 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -137,6 +137,10 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { msg.Text += " " + fi.URL } } + // skip empty messages + if msg.Text == "" { + return "", nil + } err := b.c.WebhookExecute( wID, wToken, |