fix(CreateMessage): reassigning wrong content (#2169)

This commit is contained in:
Isabella
2017-12-11 23:33:10 -06:00
committed by Crawl
parent 443961ce43
commit 1598efa0b8

View File

@@ -39,7 +39,7 @@ module.exports = async function createMessage(channel, options) {
const id = channel.client.users.resolveID(options.reply);
const mention = `<@${options.reply instanceof GuildMember && options.reply.nickname ? '!' : ''}${id}>`;
if (options.split) options.split.prepend = `${mention}, ${options.split.prepend || ''}`;
options.content = `${mention}${typeof options.content !== 'undefined' ? `, ${options.content}` : ''}`;
content = `${mention}${typeof options.content !== 'undefined' ? `, ${options.content}` : ''}`;
}
if (content) {