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