mirror of
https://github.com/danbulant/discord.js
synced 2026-06-15 20:51:15 +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 = '';
|
||||
if (this.options.reply && !this.isUser && this.target.type !== 'dm') {
|
||||
const id = this.target.client.users.resolveID(this.options.reply);
|
||||
replyPrefix = this.options.replyPrefixer ? this.options.replyPrefixer(this.options.reply) :
|
||||
this.target.client.options.replyPrefixer ? this.target.client.options.replyPrefixer(this.options.reply) :
|
||||
`<@${this.options.reply instanceof GuildMember && this.options.reply.nickname ? '!' : ''}${id}>, `;
|
||||
replyPrefix = this.options.replyPrefixer
|
||||
? this.options.replyPrefixer(this.options.reply)
|
||||
: 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 || ''}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue