changevol
Accepts a volume input in L or GAL, and spits out an embed with a conversion to the opposite volume unit.
Private
Content
5 lines{=(ua):{upper:{args}}}
{=(ltogal):{calc:round(({ua(1):L}/3.785411784)*10)/10} Gallons}
{=(galtol):{calc:round(({ua(1):GAL}*3.785411784)*10)/10} Litres}
{=(error):Please include either an `L` or a `GAL` as a volume unit of measure.}
{=(result):{{if({in(GAL):{ua}}==true):galtol|{if({in(L):{ua}}==true):ltogal|error}}}}Embed
1 line{"color": 5198940, "title": "{result}", "author": {"name": "Result"}}Raw JSON
{
"id": 2137895,
"created_at": "2024-10-23T06:55:38.000Z",
"tag_name": "changevol",
"nsfw": false,
"owner_id": "176626586609647617",
"uses": 4,
"description": "Accepts a volume input in L or GAL, and spits out an embed with a conversion to the opposite volume unit.",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1053042753988210718",
"sharer": "176626586609647617",
"content": "{=(ua):{upper:{args}}}\n{=(ltogal):{calc:round(({ua(1):L}/3.785411784)*10)/10} Gallons}\n{=(galtol):{calc:round(({ua(1):GAL}*3.785411784)*10)/10} Litres}\n{=(error):Please include either an `L` or a `GAL` as a volume unit of measure.}\n{=(result):{{if({in(GAL):{ua}}==true):galtol|{if({in(L):{ua}}==true):ltogal|error}}}}",
"embed": "{\"color\": 5198940, \"title\": \"{result}\", \"author\": {\"name\": \"Result\"}}",
"last_fetched": "2026-10-20T19:45:46.068Z"
}