forked from Galactic/galactic-bot
cleanup and option to send reply in dm
This commit is contained in:
parent
db69ac885d
commit
3a3022abae
@ -130,7 +130,16 @@ class InvokerWrapper {
|
||||
if (!embed.color) embed.color = 619452;
|
||||
});
|
||||
|
||||
if (options._edit) this._pending = await this._editReply(options);
|
||||
if (options.dm) {
|
||||
this._pending = await this.author.send(options);
|
||||
await this.target.reply({
|
||||
content: ':thumbsup:',
|
||||
ephemeral: true
|
||||
});
|
||||
return this._pending;
|
||||
}
|
||||
|
||||
if (options._edit) this._pending = await this.target.editReply(options);
|
||||
else this._pending = await this.target.reply(options);
|
||||
return this._pending;
|
||||
|
||||
@ -143,13 +152,6 @@ class InvokerWrapper {
|
||||
return this.reply(options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
async _editReply(options) {
|
||||
return this.target.editReply(options);
|
||||
}
|
||||
|
||||
emojify(options = {}) {
|
||||
if (!Emojis[options.emoji])
|
||||
this.client.logger.warn(`Invalid emoji provided to command ${this.command.resolveable}: "${options.emoji}"`);
|
||||
|
Loading…
Reference in New Issue
Block a user