bank.getBank()
Returns the server's Bank public data (name, icon, description, founder, and status), or nil if the server doesn't have a Bank set up yet.
bank.getBank()
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.getBank() | — |
Valor de retorno
{ nome, icone, descricao, fundadorId, status } | nil
Exemplo de uso
let info = bank.getBank()
if info then message.reply(info.nome) 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.