mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +00:00
Fix sending codeblocks without a lang
This commit is contained in:
parent
6d7293e3c5
commit
75d45bd587
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class RESTMethods {
|
||||||
if (typeof content !== 'undefined') content = this.client.resolver.resolveString(content);
|
if (typeof content !== 'undefined') content = this.client.resolver.resolveString(content);
|
||||||
|
|
||||||
if (content) {
|
if (content) {
|
||||||
if (code) {
|
if (typeof code === 'string') {
|
||||||
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||||
content = `\`\`\`${typeof code !== 'undefined' && code !== null ? code : ''}\n${content}\n\`\`\``;
|
content = `\`\`\`${typeof code !== 'undefined' && code !== null ? code : ''}\n${content}\n\`\`\``;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue