Improve help error message
This commit is contained in:
parent
d8a58e8977
commit
1307f1a61f
@ -82,7 +82,7 @@ Servers: {}", env!("CARGO_PKG_VERSION"), guilds))?;
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn wc_help(msg: &Message) -> Result<(), Error> {
|
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:
|
Get information:
|
||||||
guild <name/prefix> - show guild stats and territories
|
guild <name/prefix> - show guild stats and territories
|
||||||
@ -103,9 +103,11 @@ Misc.:
|
|||||||
info - show bot info
|
info - show bot info
|
||||||
status - show online players
|
status - show online players
|
||||||
|
|
||||||
Visit the Discord for more help: https://discord.gg/GbN7HeG"))?;
|
Visit the Discord for more help: https://discord.gg/GbN7HeG")) {
|
||||||
|
bail!("could not send DM");
|
||||||
Ok(())
|
} else {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn wc_crop(command: &str, msg: &Message) -> Result<(), Error> {
|
pub fn wc_crop(command: &str, msg: &Message) -> Result<(), Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user