mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix sending codeblocks without a lang
This commit is contained in:
@@ -47,7 +47,7 @@ class RESTMethods {
|
||||
if (typeof content !== 'undefined') content = this.client.resolver.resolveString(content);
|
||||
|
||||
if (content) {
|
||||
if (code) {
|
||||
if (typeof code === 'string') {
|
||||
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||
content = `\`\`\`${typeof code !== 'undefined' && code !== null ? code : ''}\n${content}\n\`\`\``;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user