aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/src/commands/owner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/07_sample_bot_structure/src/commands/owner.rs')
-rw-r--r--examples/07_sample_bot_structure/src/commands/owner.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/07_sample_bot_structure/src/commands/owner.rs b/examples/07_sample_bot_structure/src/commands/owner.rs
index e80c19d..7836b8f 100644
--- a/examples/07_sample_bot_structure/src/commands/owner.rs
+++ b/examples/07_sample_bot_structure/src/commands/owner.rs
@@ -1,10 +1,5 @@
command!(quit(ctx, msg, _args) {
- match ctx.quit() {
- Ok(()) => {
- let _ = msg.reply("Shutting down!");
- },
- Err(why) => {
- let _ = msg.reply(&format!("Failed to shutdown: {:?}", why));
- },
- }
+ ctx.quit();
+
+ let _ = msg.reply("Shutting down!");
});