mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(CreateMessage): reassigning wrong content (#2169)
This commit is contained in:
parent
443961ce43
commit
1598efa0b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue