mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
consistency is king (#2554)
This commit is contained in:
@@ -51,7 +51,7 @@ class Util {
|
|||||||
/**
|
/**
|
||||||
* Splits a string into multiple chunks at a designated character that do not exceed a specific length.
|
* Splits a string into multiple chunks at a designated character that do not exceed a specific length.
|
||||||
* @param {string} text Content to split
|
* @param {string} text Content to split
|
||||||
* @param {SplitOptions} [options] Options controlling the behaviour of the split
|
* @param {SplitOptions} [options] Options controlling the behavior of the split
|
||||||
* @returns {string|string[]}
|
* @returns {string|string[]}
|
||||||
*/
|
*/
|
||||||
static splitMessage(text, { maxLength = 2000, char = '\n', prepend = '', append = '' } = {}) {
|
static splitMessage(text, { maxLength = 2000, char = '\n', prepend = '', append = '' } = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user