mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Remove all deprecated methods / props
This commit is contained in:
@@ -383,18 +383,6 @@ class Message {
|
||||
return this.client.rest.methods.updateMessage(this, content, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit the content of the message, with a code block.
|
||||
* @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);
|
||||
return this.edit(`\`\`\`${lang || ''}\n${content}\n\`\`\``);
|
||||
}
|
||||
|
||||
/**
|
||||
* Pins this message to the channel's pinned messages.
|
||||
* @returns {Promise<Message>}
|
||||
|
||||
Reference in New Issue
Block a user