forked from Galactic/galactic-bot
cleanup and bugfix
This commit is contained in:
parent
5e78e721da
commit
5f876339dc
@ -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}`;
|
||||
|
Loading…
Reference in New Issue
Block a user