misc: specified command.Context
This commit is contained in:
parent
dbf173560d
commit
e066dd08de
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class Galaxy(commands.Cog):
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@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."""
|
"""This command generates a link to refund carnage of killed ships."""
|
||||||
output = f"https://info.galaxy.casa/kills/{message_id}"
|
output = f"https://info.galaxy.casa/kills/{message_id}"
|
||||||
await ctx.send(f"Output link: {output}")
|
await ctx.send(f"Output link: {output}")
|
||||||
|
@ -150,7 +150,7 @@ class Galaxy(commands.Cog):
|
||||||
await interaction.response.send_message(embed=embed)
|
await interaction.response.send_message(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def unix(self, ctx):
|
async def unix(self, ctx: commands.Context):
|
||||||
"""Posts the current Unix timestamp."""
|
"""Posts the current Unix timestamp."""
|
||||||
timestamp = int(datetime.timestamp(datetime.now()))
|
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}>")
|
embed=discord.Embed(title="Current Time", url="https://www.unixtimestamp.com/", color=await self.bot.get_embed_color(None), description=f"<t:{timestamp}>")
|
||||||
|
|
Loading…
Reference in a new issue