UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

1 lines 455 B
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction");class LocaleString extends APIFunction_1.APIFunction{name="$dateLocaleString";description="Retrieves the date as locale string.";parameters=[];usage="$dateLocaleString";returns=APIFunction_1.ParamType.String;aliases=[];compile=!1;async run(e){return e.date.toLocaleString(e.locale,{timeZone:e.timeZone})}}exports.default=LocaleString;