bank.getTransactions(userId?, limit?)
Returns a user's transaction history at the Bank, newest first, capped by the given limit (default: 25).
bank.getTransactions(userId?, limit?)
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.getTransactions(userId?, limit?) | string?, number? |
Valor de retorno
array
Exemplo de uso
let historico = bank.getTransactions(message.author.id, 10)
print(size(historico) .. " transação(ões)")Observaçõ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.