From 66a9b997d05f8f20efde0f6ff270943e5226cc1b Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 11 Jul 2020 23:32:52 +0300 Subject: [PATCH] formatted respond --- structure/extensions/Message.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/structure/extensions/Message.js b/structure/extensions/Message.js index 4c14d93..65e05a4 100644 --- a/structure/extensions/Message.js +++ b/structure/extensions/Message.js @@ -85,6 +85,13 @@ const Message = Structures.extend('Message', (Message) => { } + async formattedRespond(index, opts = { }) { + + if (!opts.params) opts.params = {}; + this.respond(this.format(index, opts.params), opts) + + } + async respond(str, opts = { attachments: [] }) { if(typeof str === 'string') {