diff --git a/src/bot.ts b/src/bot.ts index a7904678325f24221410813dbb82497d5f7f34e1..a34cb32f09f4ea9d213c18c8eedfa11229bda2df 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1210,6 +1210,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; }