diff --git a/services/phoebe-discord/src/handler.rs b/services/phoebe-discord/src/handler.rs index 6a3e352..93bf365 100644 --- a/services/phoebe-discord/src/handler.rs +++ b/services/phoebe-discord/src/handler.rs @@ -69,11 +69,18 @@ impl EventHandler for DiscordHandler { .as_ref() .map(|m| ChatMessageReference::new(discord_reference(m.channel_id), m.id)); + let attachments = message + .attachments + .into_iter() + .map(|a| a.url) + .map(ChatAttachment::URL) + .collect::>(); + let chat_message = ChatMessage { origin, author, content, - attachments: vec![], + attachments, replying: replies_to, };