diff options
| author | 2020-05-06 19:20:51 +0300 | |
|---|---|---|
| committer | 2020-05-06 19:20:51 +0300 | |
| commit | 442d7199eef085910370506f91fda5bf0ef737a5 (patch) | |
| tree | 547b0c9d764e0048d2c7a4b50c98b013e40a6617 | |
| parent | Renamed `news.py` to `python_news.py` and `News` to `PythonNews` to avoid con... (diff) | |
Remove `PythonNews.channel` because this is unnecessary
| -rw-r--r-- | bot/cogs/python_news.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bot/cogs/python_news.py b/bot/cogs/python_news.py index 092ee3cff..e3c8b1e1e 100644 --- a/bot/cogs/python_news.py +++ b/bot/cogs/python_news.py @@ -30,7 +30,6 @@ class PythonNews(Cog): self.bot = bot self.webhook_names = {} self.webhook: t.Optional[discord.Webhook] = None - self.channel: t.Optional[discord.TextChannel] = None self.bot.loop.create_task(self.get_webhook_names()) self.bot.loop.create_task(self.get_webhook_and_channel()) @@ -217,7 +216,6 @@ class PythonNews(Cog): """Storage #python-news channel Webhook and `TextChannel` to `News.webhook` and `channel`.""" await self.bot.wait_until_guild_available() self.webhook = await self.bot.fetch_webhook(constants.PythonNews.webhook) - self.channel = await self.bot.fetch_channel(constants.PythonNews.channel) await self.start_tasks() |