diff --git a/src/bot.ts b/src/bot.ts
index 08668e3c4f39a45173ccb4b2919c2eea0db95425..44688901193671603f4b2513eaef93bd6b22fb3c 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -912,7 +912,7 @@ export class DiscordBot {
                     const content = await Util.DownloadFile(attachment.url);
                     const fileMime = content.mimeType || mime.getType(attachment.filename)
                         || "application/octet-stream";
-                    const mxcUrl = await this.bridge.botIntent.underlyingClient.uploadContent(
+                    const mxcUrl = await intent.underlyingClient.uploadContent(
                         content.buffer,
                         fileMime,
                         attachment.filename,