mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
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:
@@ -614,7 +614,7 @@ class Streams(commands.Cog):
|
||||
chn = self.bot.get_channel(raw_msg["channel"])
|
||||
if chn is not None:
|
||||
try:
|
||||
msg = await chn.get_message(raw_msg["message"])
|
||||
msg = await chn.fetch_message(raw_msg["message"])
|
||||
except discord.HTTPException:
|
||||
pass
|
||||
else:
|
||||
@@ -633,8 +633,8 @@ class Streams(commands.Cog):
|
||||
|
||||
await self.db.streams.set(raw_streams)
|
||||
|
||||
def __unload(self):
|
||||
def cog_unload(self):
|
||||
if self.task:
|
||||
self.task.cancel()
|
||||
|
||||
__del__ = __unload
|
||||
__del__ = cog_unload
|
||||
|
||||
Reference in New Issue
Block a user