From c4ae8906b9e003ad29923562b406b533c2138e81 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Mon, 17 Apr 2023 17:24:48 +0200 Subject: [PATCH] DOC: lua/event: add ServerEvent class header This is to make ServerEvent class easier to understand, some additional info related to ServerEvent class may be included here. --- doc/lua-api/index.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index f75c6b3af..d470491c7 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -1487,6 +1487,12 @@ EventSub class ServerEvent class ================= +.. js:class:: ServerEvent + +This class is provided with every **SERVER** events. + +See :js:func:`core.event_sub()` for more info. + .. js:attribute:: ServerEvent.name Contains the name of the server.