소스 검색

converter now will accept images with uppercase file extensions

tags/v2.0.0
Roxie Gibson 5 년 전
부모
커밋
5ca4cbec95
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      roxbot/converters.py

+ 1
- 1
roxbot/converters.py 파일 보기

@@ -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…
취소
저장