cleanup and bugfix

This commit is contained in:
Erik 2020-09-20 17:34:13 +03:00
parent 5e78e721da
commit 5f876339dc

View File

@ -1,6 +1,6 @@
const { Structures } = require('discord.js');
const { Util, Emojis } = require('../../util/');
const { Emojis } = require('../../util/');
const { stripIndents } = require('common-tags');
const Message = Structures.extend('Message', (Message) => {
@ -112,7 +112,7 @@ const Message = Structures.extend('Message', (Message) => {
return super.edit(str);
}
async prompt(str, opts) {
async prompt(str, opts = {}) {
if(typeof str === 'string') {
if(opts.emoji) str = `${Emojis[opts.emoji]} ${str}`;
if(opts.reply) str = `<@!${this.author.id}> ${str}`;