mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Update owner for discord.py http changes
This commit is contained in:
parent
01bbac480d
commit
f6383c2dfd
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user