mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-04 01:50:08 +00:00
Simplify sendCode lang
This commit is contained in:
@@ -334,7 +334,7 @@ class Message {
|
||||
*/
|
||||
editCode(lang, content) {
|
||||
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||
return this.edit(`\`\`\`${lang ? lang : ''}\n${content}\n\`\`\``);
|
||||
return this.edit(`\`\`\`${lang || ''}\n${content}\n\`\`\``);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user