Skip to content

SplitOptions

typedef · Source

Options for splitting a message. Type: Object

Properties

maxLength

optional

maxLength: number

Maximum character length per message piece

Default: 2000

char

optional

char: string | Array<string> | RegExp | Array<RegExp>

Character(s) or Regex(es) to split the message with, an array can be used to split multiple times

Default: '\n'

prepend

optional

prepend: string

Text to prepend to every piece except the first

Default: ''

append

optional

append: string

Text to append to every piece except the last

Default: ''

Unofficial software. Not affiliated with or supported by Discord.