aboutsummaryrefslogtreecommitdiff
path: root/src/framework/help_commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/help_commands.rs')
-rw-r--r--src/framework/help_commands.rs18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/framework/help_commands.rs b/src/framework/help_commands.rs
index dec0053..7846259 100644
--- a/src/framework/help_commands.rs
+++ b/src/framework/help_commands.rs
@@ -117,15 +117,19 @@ 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
+ ))
});
}
@@ -295,8 +299,10 @@ 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(());
}