diff options
| author | acdenisSK <[email protected]> | 2017-09-23 23:16:26 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-09-23 23:16:26 +0200 |
| commit | ab67c1dd60b5f49541815b2527e8a3cb7712e182 (patch) | |
| tree | b7d7f1d5c0342c80488972e4e0157dc964a9baea /src/framework/standard/help_commands.rs | |
| parent | Downgrade sodiumoxide to v0.0.14 (diff) | |
| download | serenity-ab67c1dd60b5f49541815b2527e8a3cb7712e182.tar.xz serenity-ab67c1dd60b5f49541815b2527e8a3cb7712e182.zip | |
Revamp errors in `Args` and commands
Diffstat (limited to 'src/framework/standard/help_commands.rs')
| -rw-r--r-- | src/framework/standard/help_commands.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs index a14f510..c25b227 100644 --- a/src/framework/standard/help_commands.rs +++ b/src/framework/standard/help_commands.rs @@ -27,7 +27,7 @@ use std::collections::HashMap; use std::sync::Arc; use std::fmt::Write; use super::command::InternalCommand; -use super::{Args, Command, CommandGroup, CommandOrAlias}; +use super::{Args, Command, CommandGroup, CommandOrAlias, CommandError}; use client::Context; use model::{ChannelId, Guild, Member, Message}; use utils::Colour; @@ -83,7 +83,7 @@ pub fn with_embeds(_: &mut Context, msg: &Message, groups: HashMap<String, Arc<CommandGroup>>, args: Args) - -> Result<(), String> { + -> Result<(), CommandError> { if !args.is_empty() { let name = args.full(); @@ -256,7 +256,7 @@ pub fn plain(_: &mut Context, msg: &Message, groups: HashMap<String, Arc<CommandGroup>>, args: Args) - -> Result<(), String> { + -> Result<(), CommandError> { if !args.is_empty() { let name = args.full(); |