async def generate_waifu_insult(self, avatar):
        """Generate a waifu insult image.

        This function is a coroutine.

        Parameters:
            avatar: str - http/s url pointing to an image, has to have proper headers and be a direct link to an image

        Return Type: image data"""
        if not isinstance(avatar, str):
            raise TypeError("type of 'avatar' must be str.")
        async with aiohttp.ClientSession() as session:
            async with session.post("https://api.weeb.sh/auto-image/waifu-insult", headers=self.__headers, data={"avatar": avatar}) as resp:
                if resp.status == 200:
                    return await resp.read()
                else:
                    raise Exception((await resp.json())['message'])
async def generate_waifu_insult ( self , avatar ) : if not isinstance ( avatar , str ) : raise TypeError ( "type of 'avatar' must be str." ) async with aiohttp . ClientSession ( ) as session : async with session . post ( "https://api.weeb.sh/auto-image/waifu-insult" , headers = self . __headers , data = { "avatar" : avatar } ) as resp : if resp . status == 200 : return await resp . read ( ) else : raise Exception ( ( await resp . json ( ) ) [ 'message' ] )
Generate a waifu insult image.

        This function is a coroutine.

        Parameters:
            avatar: str - http/s url pointing to an image, has to have proper headers and be a direct link to an image

        Return Type: image data