forked from lug/matterbridge
Fancy replies using rich embeds on Discord side
This commit is contained in:
@@ -353,7 +353,15 @@ func (b *Bdiscord) handleEventBotUser(msg *config.Message, channelID string) (st
|
||||
|
||||
for _, msgPart := range msgParts {
|
||||
m := discordgo.MessageSend{
|
||||
Content: msg.Username + msgPart,
|
||||
Embeds: []*discordgo.MessageEmbed{
|
||||
{
|
||||
Description: msgPart,
|
||||
Author: &discordgo.MessageEmbedAuthor{
|
||||
Name: msg.Username,
|
||||
IconURL: msg.Avatar,
|
||||
},
|
||||
},
|
||||
},
|
||||
AllowedMentions: b.getAllowedMentions(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user