mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
feat(Message): inline reply method
This commit is contained in:
parent
975b6cbd94
commit
4f7c207c99
1 changed files with 17 additions and 0 deletions
|
|
@ -592,6 +592,23 @@ class Message extends Base {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send an inline reply to this message.
|
||||||
|
* @param {StringResolvable|APIMessage} [content=''] The content for the message
|
||||||
|
* @param {MessageOptions|MessageAdditions} [options={inlineReplyTo:this}]
|
||||||
|
* The additional options to provide
|
||||||
|
* @returns {Promise<Message|Message[]>}
|
||||||
|
*/
|
||||||
|
inlineReply(content, options) {
|
||||||
|
return this.channel.send(
|
||||||
|
content instanceof APIMessage
|
||||||
|
? content
|
||||||
|
: APIMessage.transformOptions(content, options, {
|
||||||
|
inlineReplyTo: this,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch this message.
|
* Fetch this message.
|
||||||
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue