mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(CreateMessage): reassigning wrong content (#2169)
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = async function createMessage(channel, options) {
|
|||||||
const id = channel.client.users.resolveID(options.reply);
|
const id = channel.client.users.resolveID(options.reply);
|
||||||
const mention = `<@${options.reply instanceof GuildMember && options.reply.nickname ? '!' : ''}${id}>`;
|
const mention = `<@${options.reply instanceof GuildMember && options.reply.nickname ? '!' : ''}${id}>`;
|
||||||
if (options.split) options.split.prepend = `${mention}, ${options.split.prepend || ''}`;
|
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) {
|
if (content) {
|
||||||
|
|||||||
Reference in New Issue
Block a user