summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/discord.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 1c6c40d9..bc93b957 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -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) {