From fd6770373f453473293d4b99e847744dad9ec55c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 13 Mar 2025 15:11:37 +0000 Subject: Add the rpc_message module, remove the notice RPC event. --- docs/RPC/jsonrpc.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'docs/RPC/jsonrpc.js') 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); + } } /* -- cgit