From 1a3b2061fd1e68a53d809454e93d881683c956cf Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Thu, 24 Oct 2019 16:38:01 -0400 Subject: Misc Bug Fixes * Fix typo in easter riddle type hint * Fix incorrect `PIL.Image` type hint (vs. `PIL.Image.Image`) --- bot/seasons/easter/easter_riddle.py | 2 +- bot/seasons/easter/egg_decorating.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') 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. -- cgit v1.2.3