UNPKG

constatic

Version:
2 lines (1 loc) 499 B
import{getDiscordBotInfo as i,uiMessage as n}from"#helpers";import s from"chalk";import c from"ora";async function p(o){const e=c();e.start(n({"en-US":"\u{1F50D} Fetching token information...","pt-BR":"\u{1F50D} Buscando informa\xE7\xF5es do token..."}));const r=await i(o);e.stop();const{success:t}=r;return t?{success:t,data:{token:o,...r.data}}:{success:t,error:n({"en-US":"The provided token is invalid","pt-BR":"O token informado \xE9 inv\xE1lido!"},s.red)}}export{p as fetchDiscordTokenData};