formatted respond

This commit is contained in:
Erik 2020-07-11 23:32:52 +03:00
parent 2befa37f29
commit 66a9b997d0

View File

@ -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') {