diff --git a/jarvis/cogs/util.py b/jarvis/cogs/util.py index 3964a00..4cda0c9 100644 --- a/jarvis/cogs/util.py +++ b/jarvis/cogs/util.py @@ -339,7 +339,10 @@ class UtilCog(Scale): @slash_option( name="string", description="String to convert", opt_type=OptionTypes.STRING, required=True ) - async def _timestamp(self, ctx: InteractionContext, string: str) -> None: + @slash_option( + name="private", description="Respond quietly?", opt_type=OptionTypes.BOOLEAN, required=False + ) + async def _timestamp(self, ctx: InteractionContext, string: str, private: bool = False) -> None: timestamp = parse(string) if not timestamp: await ctx.send("Valid time not found, try again", ephemeral=True) @@ -360,7 +363,7 @@ class UtilCog(Scale): EmbedField(name="ISO8601", value=timestamp.isoformat()), ] embed = build_embed(title="Converted Time", description=f"`{string}`", fields=fields) - await ctx.send(embed=embed) + await ctx.send(embed=embed, ephemeral=private) def setup(bot: Snake) -> None: