diff options
| author | 2021-09-03 16:28:04 +0100 | |
|---|---|---|
| committer | 2021-09-03 16:28:04 +0100 | |
| commit | cd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch) | |
| tree | 4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/exts/halloween/spookynamerate.py | |
| parent | Handle status not found with 404 picture (diff) | |
| parent | Merge pull request #839 from python-discord/android-codeblock-fix (diff) | |
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/exts/halloween/spookynamerate.py')
| -rw-r--r-- | bot/exts/halloween/spookynamerate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/halloween/spookynamerate.py b/bot/exts/halloween/spookynamerate.py index 3d6d95fa..5c21ead7 100644 --- a/bot/exts/halloween/spookynamerate.py +++ b/bot/exts/halloween/spookynamerate.py @@ -6,7 +6,7 @@ from datetime import datetime, timedelta from logging import getLogger from os import getenv from pathlib import Path -from typing import Union +from typing import Optional from async_rediscache import RedisCache from discord import Embed, Reaction, TextChannel, User @@ -91,7 +91,7 @@ class SpookyNameRate(Cog): # will automatically start the scoring and announcing the result (without waiting for 12, so do not expect it to.). # Also, it won't wait for the two hours (when the poll closes). - def __init__(self, bot: Bot) -> None: + def __init__(self, bot: Bot): self.bot = bot self.name = None @@ -355,7 +355,7 @@ class SpookyNameRate(Cog): return embed - async def get_channel(self) -> Union[TextChannel, None]: + async def get_channel(self) -> Optional[TextChannel]: """Gets the sir-lancebot-channel after waiting until ready.""" await self.bot.wait_until_ready() channel = self.bot.get_channel( |