From e066dd08de30bf44cd540f2129575c4c79b83b07 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 11 Aug 2023 00:04:33 -0400 Subject: [PATCH] misc: specified command.Context --- galaxy/galaxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 497744a..59f91dc 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -44,7 +44,7 @@ class Galaxy(commands.Cog): await ctx.send(embed=embed) @commands.command() - async def carnagerefund(self, ctx, message_id: str): + async def carnagerefund(self, ctx: commands.Context, message_id: str): """This command generates a link to refund carnage of killed ships.""" output = f"https://info.galaxy.casa/kills/{message_id}" await ctx.send(f"Output link: {output}") @@ -150,7 +150,7 @@ class Galaxy(commands.Cog): await interaction.response.send_message(embed=embed) @commands.command() - async def unix(self, ctx): + async def unix(self, ctx: commands.Context): """Posts the current Unix timestamp.""" timestamp = int(datetime.timestamp(datetime.now())) embed=discord.Embed(title="Current Time", url="https://www.unixtimestamp.com/", color=await self.bot.get_embed_color(None), description=f"")