mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Skip empty messages being sent with the webhook (discord). #469
This commit is contained in:
parent
618953c865
commit
93307b57aa
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user