summaryrefslogtreecommitdiff
path: root/docs/RPC
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-19 17:18:46 +0100
committerSadie Powell <sadie@witchery.services>2025-04-19 17:22:06 +0100
commit40a1dc953621e54978e0c3f19da9bbc41d7a6dba (patch)
treedc8b1ba97130a0b3ea59ff6e40e8e7aa2e03c0f9 /docs/RPC
parent70bf013ef0bf6c8ba60e85aacca2ec97848ca0b3 (diff)
Document the rpc_data result better.
Diffstat (limited to 'docs/RPC')
-rw-r--r--docs/RPC/rpc_data.md23
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/RPC/rpc_data.md b/docs/RPC/rpc_data.md
index 6aa16bd3a..f14e768d5 100644
--- a/docs/RPC/rpc_data.md
+++ b/docs/RPC/rpc_data.md
@@ -8,7 +8,7 @@ Lists all channels that exist on the network.
Index | Description
----- | -----------
-0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all detail or "name" to just retrieve the channel names. Defaults to "name".
+0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all information or "name" to just retrieve the channel names. Defaults to "name".
### Errors
@@ -18,7 +18,9 @@ Code | Description
### Result
-Returns an array of channel names.
+If the detail level is not specified or is "name" then an array of channel names.
+
+If the detail level is "full" then a mapping of channel names to information about the channel. See `anope.channel` for more information on the data structure.
#### Example
@@ -87,7 +89,7 @@ Lists all services operators that exist on the network.
Index | Description
----- | -----------
-0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all detail or "name" to just retrieve the services operator nicknames. Defaults to "name".
+0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all information or "name" to just retrieve the services operator nicknames. Defaults to "name".
### Errors
@@ -97,7 +99,9 @@ Code | Description
### Result
-Returns an array of services operator names.
+If the detail level is not specified or is "name" then an array of services operator names.
+
+If the detail level is "full" then a mapping of services operator names to information about the services operator. See `anope.oper` for more information on the data structure.
#### Example
@@ -164,7 +168,7 @@ Lists all servers that exist on the network.
Index | Description
----- | -----------
-0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all detail or "name" to just retrieve the server names. Defaults to "name".
+0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all information or "name" to just retrieve the server names. Defaults to "name".
### Errors
@@ -174,7 +178,9 @@ Code | Description
### Result
-Returns an array of server names.
+If the detail level is not specified or is "name" then an array of server names.
+
+If the detail level is "full" then a mapping of server names to information about the server. See `anope.server` for more information on the data structure.
#### Example
@@ -236,7 +242,7 @@ Lists all users that exist on the network.
Index | Description
----- | -----------
-0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all detail or "name" to just retrieve the user nicknames. Defaults to "name".
+0 | If specified then the level of detail to retrieve. Can be set to "full" to retrieve all information or "name" to just retrieve the user nicknames. Defaults to "name".
### Errors
@@ -246,8 +252,9 @@ Code | Description
### Result
-Returns an array of user nicknames.
+If the detail level is not specified or is "name" then an array of user nicknames.
+If the detail level is "full" then a mapping of user nicknames to information about the user. See `anope.user` for more information on the data structure.
#### Example