Skip to content

Commit

Permalink
Remove unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 5, 2024
1 parent baa9745 commit 4c8ee82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 4c8ee82

Please sign in to comment.