Send mediaserver link to Discord in Webhook mode (discord) (#405)

pull/421/head
ValdikSS 6 years ago committed by Wim
parent e57f3a7e6c
commit a12a8d4fe2

@ -130,6 +130,12 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
return "", nil
}
b.Log.Debugf("Broadcasting using Webhook")
for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo)
if fi.URL != "" {
msg.Text += fi.URL + " "
}
}
err := b.c.WebhookExecute(
wID,
wToken,

Loading…
Cancel
Save