mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +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 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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue