mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Update owner for discord.py http changes
This commit is contained in:
@@ -280,7 +280,7 @@ class Owner:
|
||||
async def avatar(self, url):
|
||||
"""Sets Red's avatar"""
|
||||
try:
|
||||
async with self.bot.session.get(url) as r:
|
||||
async with self.bot.http.session.get(url) as r:
|
||||
data = await r.read()
|
||||
await self.bot.edit_profile(settings.password, avatar=data)
|
||||
await self.bot.say("Done.")
|
||||
|
||||
Reference in New Issue
Block a user