mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Deprecate aliases (#1469)
This commit is contained in:
@@ -388,6 +388,7 @@ class Message {
|
|||||||
* @param {string} lang The language for the code block
|
* @param {string} lang The language for the code block
|
||||||
* @param {StringResolvable} content The new content for the message
|
* @param {StringResolvable} content The new content for the message
|
||||||
* @returns {Promise<Message>}
|
* @returns {Promise<Message>}
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
editCode(lang, content) {
|
editCode(lang, content) {
|
||||||
content = Util.escapeMarkdown(this.client.resolver.resolveString(content), true);
|
content = Util.escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ class Webhook {
|
|||||||
* @param {StringResolvable} content The content to send
|
* @param {StringResolvable} content The content to send
|
||||||
* @param {WebhookMessageOptions} [options={}] The options to provide
|
* @param {WebhookMessageOptions} [options={}] The options to provide
|
||||||
* @returns {Promise<Message|Message[]>}
|
* @returns {Promise<Message|Message[]>}
|
||||||
|
* @deprecated
|
||||||
* @example
|
* @example
|
||||||
* // Send a message
|
* // Send a message
|
||||||
* webhook.sendMessage('hello!')
|
* webhook.sendMessage('hello!')
|
||||||
@@ -160,6 +161,7 @@ class Webhook {
|
|||||||
* @param {StringResolvable} [content] Text message to send with the attachment
|
* @param {StringResolvable} [content] Text message to send with the attachment
|
||||||
* @param {WebhookMessageOptions} [options] The options to provide
|
* @param {WebhookMessageOptions} [options] The options to provide
|
||||||
* @returns {Promise<Message>}
|
* @returns {Promise<Message>}
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
sendFile(attachment, name, content, options = {}) {
|
sendFile(attachment, name, content, options = {}) {
|
||||||
return this.send(content, Object.assign(options, { file: { attachment, name } }));
|
return this.send(content, Object.assign(options, { file: { attachment, name } }));
|
||||||
@@ -171,6 +173,7 @@ class Webhook {
|
|||||||
* @param {StringResolvable} content Content of the code block
|
* @param {StringResolvable} content Content of the code block
|
||||||
* @param {WebhookMessageOptions} options The options to provide
|
* @param {WebhookMessageOptions} options The options to provide
|
||||||
* @returns {Promise<Message|Message[]>}
|
* @returns {Promise<Message|Message[]>}
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
sendCode(lang, content, options = {}) {
|
sendCode(lang, content, options = {}) {
|
||||||
return this.send(content, Object.assign(options, { code: lang }));
|
return this.send(content, Object.assign(options, { code: lang }));
|
||||||
|
|||||||
Reference in New Issue
Block a user