Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cyberofficial opened this issue Dec 12, 2020 · 0 comments
Assignees

Comments

@cyberofficial
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants