Skip to content
Math & Text capitalize

$capitalize — First letter in upper case, the rest in lower case

First letter in upper case, the rest in lower case.

Syntax

$capitalize[text]

Parameters

  • text (text, required) — The text.

Return Value

  • string.

Usage

$capitalize[hELLO wORLD] → "Hello world"

Example

$sendMessage[$capitalize[hELLO wORLD]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.