We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090eb12 commit 6a849edCopy full SHA for 6a849ed
1 file changed
techsupport_bot/commands/moderator.py
@@ -354,7 +354,14 @@ async def handle_mute_user(
354
guild=interaction.guild,
355
target=target,
356
)
357
- embed = generate_response_embed(user=target, action="mute", reason=reason)
+
358
+ muted_until_timestamp = (
359
+ f"<t:{int((datetime.now() + delta_duration).timestamp())}>"
360
+ )
361
362
+ full_reason = f"{reason} (muted until {muted_until_timestamp})"
363
364
+ embed = generate_response_embed(user=target, action="mute", reason=full_reason)
365
await interaction.response.send_message(content=target.mention, embed=embed)
366
367
@app_commands.checks.has_permissions(moderate_members=True)
0 commit comments