From f123282699698182fe677158719f5bc70d44da05 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Thu, 7 Aug 2025 22:25:27 -0300 Subject: [PATCH] Remove trailing whitespace in command help's usage when the command has no arguments --- src/commands/about.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/about.rs b/src/commands/about.rs index 636b888..7118d01 100644 --- a/src/commands/about.rs +++ b/src/commands/about.rs @@ -84,7 +84,11 @@ fn get_command_help_embed(command: &Arc) -> Embed { .collect::>() .join(" "); - let usage = format!("{name} {arguments}"); + let usage = if !arguments.is_empty() { + format!("{name} {arguments}") + } else { + name + }; EmbedBuilder::new() .author(