Browse Source

converter now will accept images with uppercase file extensions

tags/v2.0.0
Roxie Gibson 5 years ago
parent
commit
5ca4cbec95
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roxbot/converters.py

+ 1
- 1
roxbot/converters.py View File

@@ -77,7 +77,7 @@ class AvatarURL(commands.UserConverter):
Will do a user lookup, if that fails, then tries to parse the argument for a link
"""
async def convert(self, ctx, argument):
if any(x in argument.split(".")[-1] for x in ("png", "jpg", "jpeg")):
if any(x in argument.split(".")[-1].lower() for x in ("png", "jpg", "jpeg")):
return argument
else:
try:

Loading…
Cancel
Save