Skip to Content
🎉 Tickety now has applications. Read more →

Truncate Parser

The Truncate Parser allows you to limit the length of text by cutting off excess characters and adding an ellipsis. This is useful when you need to display long text in a limited space.

Usage

To use the parser, insert the following syntax in your text:

{truncate(maxlength):variable}

  • You can also reference this parser using the aliases: ml, maxLength

Examples

  1. Basic truncation:
  • Input: {truncate(13):This is a very long text}
  • Output: This is a ver...
  1. Using with variables:
  • Input: {truncate(13):user.description}
  • Output: Hello, I am a...

Notes

  • If the text is shorter than the maxlength, it will be returned unchanged
  • When text is truncated, an ellipsis (…) is automatically added to the end
  • The max length parameter must be a positive integer
  • Spaces count towards the character limit

Join Parser

The Join Parser allows you to combine array elements into a single string with a comma separator. It can also format Discord IDs into proper mentions.

Usage

To use the parser, insert the following syntax in your text:

{join(formatter):variable}

  • Formatter is optional and can be one of: roles, channels, mentions

Examples

  1. Basic joining:
  • Input: {join:{cool.variable}}
  • Output: apple, banana, orange
  1. With Discord mention formatting:
  • Input: {join(mentons):{ticket.users}}
  • Output: <@123456789012345678>, <@987654321098765432>
  1. Using variables:
  • Input: {join(roles):{member.roles}}
  • Output: @Admin, @Moderator, @Member

Notes

  • If a single value is provided, it will be converted to a string
  • The default separator is ”, ” (comma followed by space)
  • When using formatters, non-Discord IDs will be returned unchanged
  • Available formatters: roles, channels, mentions