Pads text on the left or right side with a specified string to reach a target length. Use this command to align or format strings to a fixed width, for example when preparing fixed-length fields for file output.
- Label: Pad Direction
- Description: Specifies whether padding is added to the left or right side of the original text.
- Required: Yes
- Default:
LEFT - Constraints: None
- Options:
LEFT(label "Left"): Padding characters are prepended to the start of the text.RIGHT(label "Right"): Padding characters are appended to the end of the text.
- Label: Original text
- Description: The input string to be padded.
- Required: Yes
- Default: None
- Constraints: None
- Label: Text to pad
- Description: The string used as padding material, repeated as needed to reach the target length.
- Required: Yes
- Default: None
- Constraints: None
- Label: Final length
- Description: The desired total length of the resulting padded string.
- Required: Yes
- Default: None
- Constraints: None
Returns a STRING containing the padded text at the specified final length.
Throws BotCommandException on invalid input or internal failure.
