Include guild profiles in custom event field

This commit is contained in:
Tulir Asokan
2023-05-27 14:40:51 +03:00
parent d004aea9cb
commit e6108cb25d
4 changed files with 77 additions and 22 deletions

View File

@@ -226,7 +226,7 @@ func (portal *Portal) convertMessageBatch(log zerolog.Logger, source *User, mess
Int("message_type", int(msg.Type)).
Str("author_id", msg.Author.ID).
Logger()
parts := portal.convertDiscordMessage(log.WithContext(ctx), intent, msg)
parts := portal.convertDiscordMessage(log.WithContext(ctx), puppet, intent, msg)
for i, part := range parts {
if replyTo != nil {
part.Content.RelatesTo = &event.RelatesTo{InReplyTo: replyTo}