http.put(url, body?, opts?)
http.put(url, body?, opts?)
HTTP requests to outside Discord. Always go through the same security filter: response size limit, timeout, blocking of
localhost/private IPs, and a request limit per script run.Parâmetros
| Assinatura | Tipo(s) |
|---|---|
| http.put(url, body?, opts?) | string, any?, object? |
Valor de retorno
{ ok, status, headers, body, json, text }
opts.headers accepts a custom headers object in every method. On servers without this feature unlocked, calling any http method throws an error explaining which plan is required.Exemplo de uso
let res = http.put("https://api.exemplo.com/perfil/123", { nivel: 5 })
print(res.ok)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.