From e1cdcc83b440bc5e2b3d317fef24f59ec5181e11 Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 14 Aug 2020 22:45:32 +0300 Subject: [PATCH] command stat tracking (for runtime only) --- structure/extensions/Message.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/structure/extensions/Message.js b/structure/extensions/Message.js index 02d2c41..a203af2 100644 --- a/structure/extensions/Message.js +++ b/structure/extensions/Message.js @@ -70,9 +70,11 @@ const Message = Structures.extend('Message', (Message) => { params: this.parameters, args: this.arguments }); + this.command._invokes.success++; if(resolved instanceof Promise) await resolved; return { error: false }; - } catch(error) { + } catch (error) { + this.command._invokes.fail++; return { error: true, message: error }; }