mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01: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