forked from Galactic/galactic-bot
formatted respond
This commit is contained in:
parent
2befa37f29
commit
66a9b997d0
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user