Discord.py dep update 3.1 (#2587)

* Dependency update

discord.py==1.0.1
websockets<7

[style]
black==19.3b0

[Docs]
jinja==2.10.1
urllib3==1.24.2

Changes related to breaking changes from discord.py have also been made
to match

As of this commit, help formatter is back to discord.py's default
This commit is contained in:
Michael H
2019-04-23 21:40:38 -04:00
committed by GitHub
parent 0ff7259bc3
commit ad114295e7
83 changed files with 231 additions and 22307 deletions

View File

@@ -90,7 +90,7 @@ class Cleanup(commands.Cog):
collected = []
async for message in channel.history(
limit=None, before=before, after=after, reverse=False
limit=None, before=before, after=after, oldest_first=False
):
if message.created_at < two_weeks_ago:
break
@@ -223,7 +223,7 @@ class Cleanup(commands.Cog):
author = ctx.author
try:
after = await channel.get_message(message_id)
after = await channel.fetch_message(message_id)
except discord.NotFound:
return await ctx.send(_("Message not found."))