mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 20:51:14 +00:00
consistency is king (#2554)
This commit is contained in:
parent
75747f5b18
commit
25b654d494
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = '' } = {}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue