summaryrefslogtreecommitdiff
path: root/docs/RPC/jsonrpc.js
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-13 15:11:37 +0000
committerSadie Powell <sadie@witchery.services>2025-03-13 15:12:47 +0000
commitfd6770373f453473293d4b99e847744dad9ec55c (patch)
tree69d9958ee190c94e0ff31d737fb59eec2e6abce2 /docs/RPC/jsonrpc.js
parent645f969d702157a9a5ce864d3a3777f22cedac8d (diff)
Add the rpc_message module, remove the notice RPC event.
Diffstat (limited to 'docs/RPC/jsonrpc.js')
-rw-r--r--docs/RPC/jsonrpc.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/RPC/jsonrpc.js b/docs/RPC/jsonrpc.js
index 29291ad7d..e6cd07e36 100644
--- a/docs/RPC/jsonrpc.js
+++ b/docs/RPC/jsonrpc.js
@@ -119,6 +119,33 @@ class AnopeRPC {
user(nick) {
return this.run("anope.user", nick);
}
+
+ /**
+ * Sends a message to every user on the network.
+ * @param {...*} messages One or more messages to send.
+ */
+ messageNetwork(...messages) {
+ return this.run("anope.messageNetwork", ...messages);
+ }
+
+ /**
+ * Sends a message to every user on the specified server.
+ * @param {string} name The name of the server.
+ * @param {...*} messages One or more messages to send.
+ */
+ messageServer(server, ...messages) {
+ return this.run("anope.messageServer", server, ...messages);
+ }
+
+ /**
+ * Sends a message to the specified user.
+ * @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.
+ */
+ messageUser(source, target, ...messages) {
+ return this.run("anope.messageServer", source, target, ...messages);
+ }
}
/*