Remove obsolete file upload links (discord). Fixes #908 (#931)

Since v1.16.0 we now can upload files via webhook.
Old way of showing files with webhook only setup can be removed.
This commit is contained in:
Wim 2019-10-27 01:10:43 +02:00 committed by GitHub
parent 727fa9f929
commit ff0de85817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -234,18 +234,6 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
}
b.Log.Debugf("Broadcasting using Webhook")
for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo)
if fi.Comment != "" {
msg.Text += fi.Comment + ": "
}
if fi.URL != "" {
msg.Text = fi.URL
if fi.Comment != "" {
msg.Text = fi.Comment + ": " + fi.URL
}
}
}
// skip empty messages
if msg.Text == "" && (msg.Extra == nil || len(msg.Extra["file"]) == 0) {