Browse Source

fixed editing the bots pfp.

tags/v1.4.0
roxie 6 years ago
parent
commit
ed85a64724
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/settings.py

+ 1
- 1
config/settings.py View File

@@ -97,7 +97,7 @@ class Settings:
with open(avaimg, 'wb') as f:
f.write(await img.read())
with open(avaimg, 'rb') as f:
await self.bot.edit_profile(avatar=f.read())
await self.bot.user.edit(avatar=f.read())
os.remove(avaimg)
asyncio.sleep(2)
return await ctx.send(":ok_hand:")

Loading…
Cancel
Save