misc: specified command.Context

This commit is contained in:
Seaswimmer 2023-08-11 00:04:33 -04:00
parent dbf173560d
commit e066dd08de
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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"<t:{timestamp}>")