aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/help_commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/standard/help_commands.rs')
-rw-r--r--src/framework/standard/help_commands.rs18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs
index f081e1a..75c5b0b 100644
--- a/src/framework/standard/help_commands.rs
+++ b/src/framework/standard/help_commands.rs
@@ -116,19 +116,15 @@ pub fn with_embeds(_: &mut Context,
if let Some(ref usage) = command.usage {
embed = embed.field(|f| {
- f.name("Usage").value(
- &format!("`{} {}`", command_name, usage),
- )
+ f.name("Usage")
+ .value(&format!("`{} {}`", command_name, usage))
});
}
if let Some(ref example) = command.example {
embed = embed.field(|f| {
- f.name("Sample usage").value(&format!(
- "`{} {}`",
- command_name,
- example
- ))
+ f.name("Sample usage")
+ .value(&format!("`{} {}`", command_name, example))
});
}
@@ -297,10 +293,8 @@ pub fn plain(_: &mut Context,
}
}
- let _ = msg.channel_id.say(&format!(
- "**Error**: Command `{}` not found.",
- name
- ));
+ let _ = msg.channel_id
+ .say(&format!("**Error**: Command `{}` not found.", name));
return Ok(());
}