mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +00:00
Add resolve content back into send (#1516)
so arrays are joined again, instead of sent as one new message per element
This commit is contained in:
parent
694f8278f1
commit
75eb0bae58
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ module.exports = function sendMessage(channel, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content) {
|
if (content) {
|
||||||
|
content = channel.client.resolver.resolveString(content);
|
||||||
if (split && typeof split !== 'object') split = {};
|
if (split && typeof split !== 'object') split = {};
|
||||||
// Wrap everything in a code block
|
// Wrap everything in a code block
|
||||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue