1
0
forked from lug/matterbridge

Fancy replies using rich embeds on Discord side

This commit is contained in:
2025-11-03 15:17:34 -08:00
parent 186d28858b
commit f73bee90ab
17 changed files with 1706 additions and 128 deletions

View File

@@ -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(),
}