aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-10-24 16:38:01 -0400
committerGravatar MarkKoz <[email protected]>2019-12-03 22:12:37 -0800
commit1a3b2061fd1e68a53d809454e93d881683c956cf (patch)
tree6bcd4e5930aac233a6bccf487738b20909d997d8
parentBump pillow from 6.1.0 to 6.2.0 (diff)
Misc Bug Fixes
* Fix typo in easter riddle type hint * Fix incorrect `PIL.Image` type hint (vs. `PIL.Image.Image`)
-rw-r--r--bot/seasons/easter/easter_riddle.py2
-rw-r--r--bot/seasons/easter/egg_decorating.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index 4b98b204..f5b1aac7 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -83,7 +83,7 @@ class EasterRiddle(commands.Cog):
self.current_channel = None
@commands.Cog.listener()
- async def on_message(self, message: discord.Messaged) -> None:
+ async def on_message(self, message: discord.Message) -> None:
"""If a non-bot user enters a correct answer, their username gets added to self.winners."""
if self.current_channel != message.channel:
return
diff --git a/bot/seasons/easter/egg_decorating.py b/bot/seasons/easter/egg_decorating.py
index 51f52264..23df95f1 100644
--- a/bot/seasons/easter/egg_decorating.py
+++ b/bot/seasons/easter/egg_decorating.py
@@ -46,7 +46,7 @@ class EggDecorating(commands.Cog):
@commands.command(aliases=["decorateegg"])
async def eggdecorate(
self, ctx: commands.Context, *colours: Union[discord.Colour, str]
- ) -> Union[Image, discord.Message]:
+ ) -> Union[Image.Image, discord.Message]:
"""
Picks a random egg design and decorates it using the given colours.