From 4c8ee82d65d3583e48fbd8b04233e5ebe49574e7 Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Fri, 5 Apr 2024 19:53:55 +0800 Subject: [PATCH] Remove unnecessary import --- cogs/utility.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()