Ejemplo n.º 1
0
 async def getAvatarAsPillowImage(self) -> Image.Image:
     async with session.get(self.getAvatarUrl()) as response:
         return Image.open(BytesIO(await response.read()))
Ejemplo n.º 2
0
 async def getPillowImage(self) -> PILImage.Image:
     async with session.get(self.url) as response:
         return PILImage.open(BytesIO(await response.read()))