From 6566c0d3c5ecf7a0eab1739b2b98d03fa1ac31b7 Mon Sep 17 00:00:00 2001 From: 1Computer1 <1Computer1@users.noreply.github.com> Date: Fri, 5 May 2017 19:22:15 -0400 Subject: [PATCH] Deprecate aliases (#1469) --- src/structures/Message.js | 1 + src/structures/Webhook.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/structures/Message.js b/src/structures/Message.js index dfd5fdd2e..4c318ce73 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -388,6 +388,7 @@ class Message { * @param {string} lang The language for the code block * @param {StringResolvable} content The new content for the message * @returns {Promise} + * @deprecated */ editCode(lang, content) { content = Util.escapeMarkdown(this.client.resolver.resolveString(content), true); diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index bf997008e..1f66ec64f 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -143,6 +143,7 @@ class Webhook { * @param {StringResolvable} content The content to send * @param {WebhookMessageOptions} [options={}] The options to provide * @returns {Promise} + * @deprecated * @example * // Send a message * webhook.sendMessage('hello!') @@ -160,6 +161,7 @@ class Webhook { * @param {StringResolvable} [content] Text message to send with the attachment * @param {WebhookMessageOptions} [options] The options to provide * @returns {Promise} + * @deprecated */ sendFile(attachment, name, content, options = {}) { 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 {WebhookMessageOptions} options The options to provide * @returns {Promise} + * @deprecated */ sendCode(lang, content, options = {}) { return this.send(content, Object.assign(options, { code: lang }));