mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Allow null/undefined TextBasedChannel.sendCode lang
This commit is contained in:
parent
9cd249342b
commit
862ec6a5be
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class TextBasedChannel {
|
|||
if (!options.split.append) options.split.append = '\n```';
|
||||
}
|
||||
content = this.client.resolver.resolveString(content);
|
||||
return this.sendMessage(`\`\`\`${lang}\n${content}\n\`\`\``, options);
|
||||
return this.sendMessage(`\`\`\`${lang ? lang : ''}\n${content}\n\`\`\``, options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue