changedist
Accepts a distance input in KM or MI, and spits out an embed with a conversion to the opposite distance unit.
Private
Content
5 lines{=(ua):{upper:{args}}}
{=(kmtomi):{calc:round(({ua(1):KM}/1.60934)*10)/10} Miles}
{=(mitokm):{calc:round(({ua(1):MI}*1.60934)*10)/10} Kilometres}
{=(error):Please include either a `KM` or an `MI` as a distance unit of measure.}
{=(result):{{if({in(KM):{ua}}==true):kmtomi|{if({in(MI):{ua}}==true):mitokm|error}}}}Embed
1 line{"color": 5198940, "title": "{result}", "author": {"name": "Result:"}}Raw JSON
{
"id": 2137881,
"created_at": "2024-10-23T06:28:36.000Z",
"tag_name": "changedist",
"nsfw": false,
"owner_id": "176626586609647617",
"uses": 3,
"description": "Accepts a distance input in KM or MI, and spits out an embed with a conversion to the opposite distance unit.",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1053042753988210718",
"sharer": "176626586609647617",
"content": "{=(ua):{upper:{args}}}\n{=(kmtomi):{calc:round(({ua(1):KM}/1.60934)*10)/10} Miles}\n{=(mitokm):{calc:round(({ua(1):MI}*1.60934)*10)/10} Kilometres}\n{=(error):Please include either a `KM` or an `MI` as a distance unit of measure.}\n{=(result):{{if({in(KM):{ua}}==true):kmtomi|{if({in(MI):{ua}}==true):mitokm|error}}}}",
"embed": "{\"color\": 5198940, \"title\": \"{result}\", \"author\": {\"name\": \"Result:\"}}",
"last_fetched": "2026-10-20T19:45:45.752Z"
}