diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 439786b..fbfc084 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -82,7 +82,7 @@ Servers: {}", env!("CARGO_PKG_VERSION"), guilds))?; } pub fn wc_help(msg: &Message) -> Result<(), Error> { - msg.author.dm(|f| f.content("Command overview: (prefix is wc!) + if let Err(_) = msg.author.dm(|f| f.content("Command overview: (prefix is wc!) Get information: guild - show guild stats and territories @@ -103,9 +103,11 @@ Misc.: info - show bot info status - show online players -Visit the Discord for more help: https://discord.gg/GbN7HeG"))?; - - Ok(()) +Visit the Discord for more help: https://discord.gg/GbN7HeG")) { + bail!("could not send DM"); + } else { + Ok(()) + } } pub fn wc_crop(command: &str, msg: &Message) -> Result<(), Error> {