Skip to content

Commit

Permalink
fix contentUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jul 4, 2020
1 parent e4af1fd commit 111e97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 111e97c

Please sign in to comment.