Fox-V3 icon indicating copy to clipboard operation
Fox-V3 copied to clipboard

qr invite doesnt work and tosses error at url, also any image size from 5x5 to 512x512 doesnt work in png format

Open cyberofficial opened this issue 5 years ago • 0 comments

Describe the bug qr invite doesnt work with anylink

To Reproduce

  1. Load cog qrinvite
  2. Run command [p]qrinvite ShyarE4 true https://upload.wikimedia.org/wikipedia/commons/d/d9/War_Thunder_logo.png
  3. See error

Expected behavior QR Code generated

Screenshots or Error Messages

[2020-12-11 19:15:00] [ERROR] red: Exception in command 'qrinvite'
Traceback (most recent call last):
  File "d:\janicebot\newbot\janice_data\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "D:\JaniceBot\NewBot\janice_data\cogs\CogManager\cogs\qrinvite\qrinvite.py", line 100, in qrinvite
    await ctx.send(file=discord.File(png_fp.read(), "qrcode.png"))
  File "d:\janicebot\newbot\janice_data\lib\site-packages\discord\file.py", line 73, in __init__
    self.fp = open(fp, 'rb')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

Additional context image

cyberofficial avatar Dec 12 '20 00:12 cyberofficial