diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-09 11:33:20 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-09 11:33:20 +0100 |
commit | 8b089ab1a7c91f8de5a7eabf1ad493cbef96282f (patch) | |
tree | 0dd6ec67b1f071c968d9b6eab2636b604101ced7 /docs/RPC/jsonrpc.js | |
parent | fbec4d04a519e9b34d9581c08d28be2783d54ce6 (diff) |
Stringify all parameters in the example RPC clients.
Diffstat (limited to 'docs/RPC/jsonrpc.js')
-rw-r--r-- | docs/RPC/jsonrpc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/RPC/jsonrpc.js b/docs/RPC/jsonrpc.js index df3d665e9..935344675 100644 --- a/docs/RPC/jsonrpc.js +++ b/docs/RPC/jsonrpc.js @@ -26,7 +26,7 @@ class AnopeRPC { const body = JSON.stringify({ "jsonrpc": "2.0", "method": method, - "params": params, + "params": params.map((p) => p.toString()), "id": Math.random().toString(36).slice(2) }); const headers = new Headers(); |