diff --git a/src/bot.ts b/src/bot.ts index c2f69a68e364b377abaf765853fdcca7f4cf7080..00e00dd2338dc4c6b6842bbe7d1654c6e1cb5265 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1200,6 +1200,9 @@ export class DiscordBot { if (storeEvent && storeEvent.Result) { while (storeEvent.Next()) { const matrixIds = storeEvent.MatrixId.split(";"); + if(!oldMsg.content && oldMsg.attachments.array().length>0){ + newMsg.content = newMsg.content + " " + oldMsg.attachments.array()[0].url; + } await this.OnMessage(newMsg, matrixIds[0]); return; }