diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-13 15:24:48 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-13 15:24:48 +0000 |
commit | 23d548336a021caab8e2e5a6d3cafa136a8a072d (patch) | |
tree | 636a9c132d058e0882408ab12521f9286f95606a /docs | |
parent | 82371dc27956bb2836ffcbd9134c71c3f81b8987 (diff) |
Document the required RPC modules in the JavaScript library.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/RPC/jsonrpc.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/RPC/jsonrpc.js b/docs/RPC/jsonrpc.js index e6cd07e36..fc374848b 100644 --- a/docs/RPC/jsonrpc.js +++ b/docs/RPC/jsonrpc.js @@ -47,6 +47,8 @@ class AnopeRPC { /** * Retrieves a list of channels. * + * Requires the rpc_data module to be loaded. + * * @returns {array} An array of channel names. */ listChannels() { @@ -56,6 +58,8 @@ class AnopeRPC { /** * Retrieves information about the specified channel. * + * Requires the rpc_data module to be loaded. + * * @param {string} name The name of the channel. * @returns {object} An object containing information about the channel. */ @@ -66,6 +70,8 @@ class AnopeRPC { /** * Retrieves a list of services operators. * + * Requires the rpc_data module to be loaded. + * * @returns {array} An array of channel names. */ listOpers() { @@ -75,6 +81,8 @@ class AnopeRPC { /** * Retrieves information about the specified services operator. * + * Requires the rpc_data module to be loaded. + * * @param {string} name The name of the services operator. * @returns {object} An object containing information about the services operator. */ @@ -85,6 +93,8 @@ class AnopeRPC { /** * Retrieves a list of servers. * + * Requires the rpc_data module to be loaded. + * * @returns {array} An array of servers names. */ listServers() { @@ -94,6 +104,8 @@ class AnopeRPC { /** * Retrieves information about the specified server. * + * Requires the rpc_data module to be loaded. + * * @param {string} name The name of the server. * @returns {object} An object containing information about the server. */ @@ -104,6 +116,8 @@ class AnopeRPC { /** * Retrieves a list of users. * + * Requires the rpc_data module to be loaded. + * * @returns {array} An array of channel names. */ listUsers() { @@ -113,6 +127,8 @@ class AnopeRPC { /** * Retrieves information about the specified user. * + * Requires the rpc_data module to be loaded. + * * @param {string} nick The nick of the user. * @returns {object} An object containing information about the user. */ @@ -122,6 +138,9 @@ class AnopeRPC { /** * Sends a message to every user on the network. + * + * Requires the rpc_message module to be loaded. + * * @param {...*} messages One or more messages to send. */ messageNetwork(...messages) { @@ -130,6 +149,9 @@ class AnopeRPC { /** * Sends a message to every user on the specified server. + * + * Requires the rpc_message module to be loaded. + * * @param {string} name The name of the server. * @param {...*} messages One or more messages to send. */ @@ -139,6 +161,9 @@ class AnopeRPC { /** * Sends a message to the specified user. + * + * Requires the rpc_message module to be loaded. + * * @param {string} source The source pseudoclient to send the message from. * @param {string} target The target user to send the message to. * @param {...*} messages One or more messages to send. |