🔍 /
🧮 Funções · http

http.patch(url, body?, opts?)

http.patch(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

AssinaturaTipo(s)
http.patch(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.patch("https://api.exemplo.com/perfil/123", { nivel: 6 })
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.

← Ver todas as funções de http