Deprecate aliases (#1469)

This commit is contained in:
1Computer1
2017-05-05 19:22:15 -04:00
committed by Crawl
parent fd7cb41ee6
commit 294f5ea5c8
2 changed files with 4 additions and 0 deletions

View File

@@ -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<Message>}
* @deprecated
*/
editCode(lang, content) {
content = Util.escapeMarkdown(this.client.resolver.resolveString(content), true);

View File

@@ -138,6 +138,7 @@ class Webhook {
* @param {StringResolvable} content The content to send
* @param {WebhookMessageOptions} [options={}] The options to provide
* @returns {Promise<Message|Message[]>}
* @deprecated
* @example
* // Send a message
* webhook.sendMessage('hello!')
@@ -155,6 +156,7 @@ class Webhook {
* @param {StringResolvable} [content] Text message to send with the attachment
* @param {WebhookMessageOptions} [options] The options to provide
* @returns {Promise<Message>}
* @deprecated
*/
sendFile(attachment, name, content, options = {}) {
return this.send(content, Object.assign(options, { file: { attachment, name } }));
@@ -166,6 +168,7 @@ class Webhook {
* @param {StringResolvable} content Content of the code block
* @param {WebhookMessageOptions} options The options to provide
* @returns {Promise<Message|Message[]>}
* @deprecated
*/
sendCode(lang, content, options = {}) {
return this.send(content, Object.assign(options, { code: lang }));