Update owner for discord.py http changes

This commit is contained in:
Will Tekulve 2016-06-14 09:25:56 -04:00
parent 01bbac480d
commit f6383c2dfd

View File

@ -280,7 +280,7 @@ class Owner:
async def avatar(self, url): async def avatar(self, url):
"""Sets Red's avatar""" """Sets Red's avatar"""
try: try:
async with self.bot.session.get(url) as r: async with self.bot.http.session.get(url) as r:
data = await r.read() data = await r.read()
await self.bot.edit_profile(settings.password, avatar=data) await self.bot.edit_profile(settings.password, avatar=data)
await self.bot.say("Done.") await self.bot.say("Done.")