From bab9bc5873f59bbac45199e6d7b4f9efcf13e757 Mon Sep 17 00:00:00 2001 From: samsamson33 Date: Thu, 27 Feb 2020 10:10:12 -0500 Subject: [PATCH] Revert "feat(Util): resolve text parameter of splitMessage to a string (#3212)" This reverts commit 6e230b9f98743d512bdd5aed4bdee5700b261b60. --- src/util/Util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/Util.js b/src/util/Util.js index 828569490582..700c519bc291 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -51,12 +51,11 @@ class Util { /** * Splits a string into multiple chunks at a designated character that do not exceed a specific length. - * @param {StringResolvable} text Content to split + * @param {string} text Content to split * @param {SplitOptions} [options] Options controlling the behavior of the split * @returns {string|string[]} */ static splitMessage(text, { maxLength = 2000, char = '\n', prepend = '', append = '' } = {}) { - text = this.resolveString(text); if (text.length <= maxLength) return text; const splitText = text.split(char); if (splitText.some(chunk => chunk.length > maxLength)) throw new RangeError('SPLIT_MAX_LEN');