mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Update APIMessage.js
This commit is contained in:
parent
1a699f2718
commit
6c45f118d5
1 changed files with 5 additions and 3 deletions
|
|
@ -111,9 +111,11 @@ class APIMessage {
|
||||||
let replyPrefix = '';
|
let replyPrefix = '';
|
||||||
if (this.options.reply && !this.isUser && this.target.type !== 'dm') {
|
if (this.options.reply && !this.isUser && this.target.type !== 'dm') {
|
||||||
const id = this.target.client.users.resolveID(this.options.reply);
|
const id = this.target.client.users.resolveID(this.options.reply);
|
||||||
replyPrefix = this.options.replyPrefixer ? this.options.replyPrefixer(this.options.reply) :
|
replyPrefix = this.options.replyPrefixer
|
||||||
this.target.client.options.replyPrefixer ? this.target.client.options.replyPrefixer(this.options.reply) :
|
? this.options.replyPrefixer(this.options.reply)
|
||||||
`<@${this.options.reply instanceof GuildMember && this.options.reply.nickname ? '!' : ''}${id}>, `;
|
: this.target.client.options.replyPrefixer
|
||||||
|
? this.target.client.options.replyPrefixer(this.options.reply)
|
||||||
|
: `<@${this.options.reply instanceof GuildMember && this.options.reply.nickname ? '!' : ''}${id}>, `;
|
||||||
if (isSplit) splitOptions.prepend = `${replyPrefix}${splitOptions.prepend || ''}`;
|
if (isSplit) splitOptions.prepend = `${replyPrefix}${splitOptions.prepend || ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue