From 493258686206c7c5a0be9f98f54bb606c1d1c979 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sat, 6 Sep 2025 00:31:59 -0400 Subject: [PATCH] Fix --- commands/analyze/read-qr-code.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/analyze/read-qr-code.js b/commands/analyze/read-qr-code.js index e3bd3aef..b72e8c91 100644 --- a/commands/analyze/read-qr-code.js +++ b/commands/analyze/read-qr-code.js @@ -29,14 +29,14 @@ module.exports = class ReadQRCodeCommand extends Command { ctx.drawImage(img, 0, 0); const imgData = ctx.getImageData(0, 0, img.width, img.height); try { - const result = await this.readQrCode(imgData, img.width, img.height); + const result = await this.readQrCode(imgData); return msg.reply(shorten(result, 2000)); } catch (err) { return msg.reply(`Could not read QR Code: \`${err.message}\`.`); } } - readQrCode(imgData, width, height) { - return decodeQR({ width, height, data: imgData }); + readQrCode(imgData) { + return decodeQR(imgData); } };