Skip to content

convert

smileyhead edited this page Aug 24, 2025 · 1 revision

The /convert command converts a value between two units of measurement. This command uses version 5.70.0 of the UnitsNet library by Andreas Gullberg Larsen. The command takes three arguments: the input number, the source unit, and the target unit. This command supports auto-completion for a limited number of units in the library – when less than 2 characters are typed, a fixed list of common units will be displayed. Units contained in the library but not auto-completed can be used by typing the category name followed by the unit name, and separated by a full stop (you can find the full list of category jsons here).

Undefined Symbols: If a unit has no symbol defined, then its internal name will be shown instead.

Usage:
/convert 20 [🌡️ degrees Celsius (°C)] [🌡️ degrees Fahrenheit (°F)] (auto-completed) returns the value of 20°C converted to °F.
/convert 20 Temperature.DegreeCelsius Temperature.DegreeFahrenheit (typed manually) returns the value of 20°C converted to °F.

Clone this wiki locally