From 4292b61a4cb218c5ca52b416178b2d6407a51444 Mon Sep 17 00:00:00 2001 From: nex <53234499+EEKIM10@users.noreply.github.com> Date: Fri, 14 Oct 2022 21:29:42 +0100 Subject: [PATCH] Fix typehint for lesson command --- cogs/timetable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/timetable.py b/cogs/timetable.py index 5ab57f4..b7c4912 100644 --- a/cogs/timetable.py +++ b/cogs/timetable.py @@ -84,7 +84,7 @@ class TimeTableCog(commands.Cog): async def update_timetable_message( self, - message: Union[discord.Message, discord.Interaction], + message: Union[discord.Message, discord.ApplicationContext], date: datetime = None, *, no_prefix: bool = False, @@ -144,7 +144,7 @@ class TimeTableCog(commands.Cog): else: date = datetime.now() await ctx.defer() - await self.update_timetable_message(ctx.interaction, date, no_prefix=True) + await self.update_timetable_message(ctx, date, no_prefix=True) @commands.slash_command(name="timetable") async def _timetable(self, ctx: discord.ApplicationContext, date: str = None):