Skip to content

Commit

Permalink
Humaise timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Nov 6, 2023
1 parent 0c99f37 commit da7a035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/Greeting/Commands/GreeterMute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Bot.Exceptions;
using Microsoft.Extensions.Logging;
using Punishments.Extensions;
using Humanizer;

namespace Greeting.Commands;

Expand Down Expand Up @@ -51,7 +52,7 @@ public async Task MuteCommand(

if (offset > greetGate.DisallowedMuteExistence)
throw new UnauthorizedException($"This user is too old to be muted by greeters! " +
$"They joined {offset} ago, wheras the max is {greetGate.DisallowedMuteExistence}.");
$"They joined {offset.Humanize()} ago, wheras the max is {greetGate.DisallowedMuteExistence.Humanize()}.");

var modCase = new ModCase
{
Expand Down

0 comments on commit da7a035

Please sign in to comment.