forked from jshiffer/matterbridge
This commit is contained in:
parent
0898829313
commit
b85bae31d9
@ -407,6 +407,10 @@ func (b *Bdiscord) webhookSend(msg *config.Message, webhookID, token string) (*d
|
|||||||
ContentType: "",
|
ContentType: "",
|
||||||
Reader: bytes.NewReader(*fi.Data),
|
Reader: bytes.NewReader(*fi.Data),
|
||||||
}
|
}
|
||||||
|
content := ""
|
||||||
|
if msg.Text == "" {
|
||||||
|
content = fi.Comment
|
||||||
|
}
|
||||||
_, e2 := b.c.WebhookExecute(
|
_, e2 := b.c.WebhookExecute(
|
||||||
webhookID,
|
webhookID,
|
||||||
token,
|
token,
|
||||||
@ -415,6 +419,7 @@ func (b *Bdiscord) webhookSend(msg *config.Message, webhookID, token string) (*d
|
|||||||
Username: msg.Username,
|
Username: msg.Username,
|
||||||
AvatarURL: msg.Avatar,
|
AvatarURL: msg.Avatar,
|
||||||
File: &file,
|
File: &file,
|
||||||
|
Content: content,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if e2 != nil {
|
if e2 != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user