bank.getAccount(userId?)
Returns a summary of a user's local account: Star balance, local currency balance, and account status. Equivalent to combining bank.saldoLocal() data with the user's raw account.
bank.getAccount(userId?)
This is the same Bank API, just with English names (a 1:1 alias of the methods above, same behaviour and same rules). Use whichever style you prefer — the two can even be mixed in the same script. Here, the target user is always an explicit parameter instead of always defaulting to whoever ran the script.
Parâmetros
| Assinatura | Tipo(s) |
|---|---|
| bank.getAccount(userId?) | string? |
Valor de retorno
{ userId, saldoEstrelas, saldoLocal, status }
Exemplo de uso
on command("conta", message, args)
let conta = bank.getAccount()
message.reply("Saldo local: " .. conta.saldoLocal)
endObservações
Confira os tipos esperados na tabela de Parâmetros antes de chamar: passar um tipo diferente do esperado é a causa mais comum de erro em tempo de execução.