discord-botinator
    Preparing search index...

    Function shorten

    • Clamps a string to a max length and adds "..." at the end if it is too long.

      Parameters

      • str: string

        String

      • length: number = 100

        Max length

      Returns string

      Shortened string