summaryrefslogtreecommitdiffstats
path: root/bridge/discord/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/discord/webhook.go')
-rw-r--r--bridge/discord/webhook.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/discord/webhook.go b/bridge/discord/webhook.go
index 3afb942d..c34fc945 100644
--- a/bridge/discord/webhook.go
+++ b/bridge/discord/webhook.go
@@ -5,7 +5,7 @@ import (
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/bridge/helper"
- "github.com/matterbridge/discordgo"
+ "github.com/bwmarrin/discordgo"
)
// shouldMessageUseWebhooks checks if have a channel specific webhook, if we're not using auto webhooks
@@ -89,7 +89,7 @@ func (b *Bdiscord) webhookSend(msg *config.Message, channelID string) (*discordg
&discordgo.WebhookParams{
Username: msg.Username,
AvatarURL: msg.Avatar,
- File: &file,
+ Files: []*discordgo.File{&file},
Content: content,
AllowedMentions: b.getAllowedMentions(),
},