🧮 Funções · bank · Informações do Banco

bank.existe()

Checks whether the server already has a Server Bank configured. Useful to check before calling any other bank function.

bank.existe()
📝All the functions below use the Server Bank already configured on your server (via /banco). None of them touch the database directly, everything goes through the same Services used by the slash commands, so history, taxes and permissions keep working normally.

Parâmetros

AssinaturaTipo(s)
bank.existe()

Valor de retorno

bool

Exemplo de uso

on command("banco", message, args)
  if not bank.existe() then
    message.reply("Esse servidor ainda não tem um Banco. Peça a um administrador pra criar com /banco criar.")
    return
  end
end

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.

← Ver todas as funções de bank · Informações do Banco