convert

open val String.convert: Component

Extension property to convert this string into a Component using auto-detection. Automatically detects the component format type (legacy section, legacy ampersand, MiniMessage, or plain text) and deserializes the string accordingly.

See also