diff --git a/cogs/utility.py b/cogs/utility.py index e38aa87e22..69956a46ee 100644 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -14,9 +14,8 @@ from textwrap import indent from typing import Union -import aiohttp import discord -from aiohttp import ClientResponseError +from aiohttp import ClientResponseError, ClientSession from discord.enums import ActivityType, Status from discord.ext import commands, tasks from discord.ext.commands.view import StringView @@ -2206,7 +2205,7 @@ async def avatar(self, ctx: commands.Context, url: Union[str, None]): if ctx.message.attachments: dc_avatar = await ctx.message.attachments[0].read() elif url: - async with aiohttp.ClientSession() as session: + async with ClientSession() as session: async with session.get(url) as resp: dc_avatar = await resp.read()