From 111e97c97a6a413186fed21c14e6ab21d16ad99d Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Sat, 4 Jul 2020 13:31:49 +0100 Subject: [PATCH] fix contentUpload --- src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 08668e3..4468890 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, -- GitLab