Skip to content

Commit

Permalink
Remove nullable for parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
monambike committed Feb 11, 2024
1 parent 4bbab2d commit 30d7540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/KWiJishoPermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal static string PermissionCustomErrorMessage(Permissions permission)
/// <param name="cooldown">The command cooldown.</param>
/// <param name="cooldownPurpose">The purpose of the cooldown. (if present)</param>
/// <returns></returns>
internal static string CooldownCustomErrorMessage(int maxExecute, int cooldown, string? cooldownPurpose)
internal static string CooldownCustomErrorMessage(int maxExecute, int cooldown, string cooldownPurpose)
=> $"Você só pode enviar {maxExecute} {(maxExecute == 1 ? "comando" : "comandos")}{(cooldownPurpose is not null ? $" para {cooldownPurpose}" : "")} a cada {cooldown} {(cooldown == 1 ? "minuto" : "minutos")}.";

/// <summary>
Expand Down

0 comments on commit 30d7540

Please sign in to comment.