mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01: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:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user