constatic
Version:
Constatic is a CLI for creating and managing modern TypeScript projects, providing an organized structure and features that streamline development.
2 lines (1 loc) • 507 B
JavaScript
import{getDiscordBotInfo as e,uiMessage as n}from"#helpers";import{Result as r}from"#lib/result.js";import s from"chalk";import a from"ora";async function p(o){const t=a();t.start(n({"en-US":"\u{1F50D} Fetching token information...","pt-BR":"\u{1F50D} Buscando informa\xE7\xF5es do token..."}));const i=await e(o);return t.stop(),i.success?r.ok({token:o,...i.data}):r.fail(n({"en-US":"The provided token is invalid","pt-BR":"O token informado \xE9 inv\xE1lido!"},s.red))}export{p as fetchDiscordTokenData};