summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-04 14:42:46 +0100
committerSadie Powell <sadie@witchery.services>2025-05-04 14:45:00 +0100
commite1f6d0ca167964223ca25615a8554d52c8345415 (patch)
tree40ae8bfdf376579e861aa05e1ded345f3a0fc87c
parentbb9074cbd585ca1b595b7520b5bf38c4619eed62 (diff)
Document the existence of the example JSON-RPC client.
-rw-r--r--data/modules.example.conf2
-rw-r--r--docs/RPC/jsonrpc.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf
index 243f77e09..d503d771f 100644
--- a/data/modules.example.conf
+++ b/data/modules.example.conf
@@ -801,6 +801,8 @@ module
* By itself this module does nothing. You should load a RPC method module like
* rpc_data which actually provides RPC methods.
*
+ * See docs/RPC/jsonrpc.js for an example JavaScript JSON-RPC client.
+ *
* IMPORTANT: this can not be loaded at the same time as the xmlrpc module.
*/
#module
diff --git a/docs/RPC/jsonrpc.js b/docs/RPC/jsonrpc.js
index 76c284553..cbb4d954a 100644
--- a/docs/RPC/jsonrpc.js
+++ b/docs/RPC/jsonrpc.js
@@ -8,7 +8,7 @@ class AnopeRPC {
* Initializes a new AnopeRPC instance with the specified RPC host.
*
* @param {string} The RPC host base URL.
- * @param {token} The bearer token for authorizing with the RPC token.
+ * @param {token} The bearer token for authorizing with the RPC interface.
*/
constructor(host, token = "") {
this.host = host;