aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-02-20 15:11:29 +0100
committerKim Alvefur <zash@zash.se>2023-02-20 15:11:29 +0100
commitbac012d67553b5baa529404d0b148cfd43a22372 (patch)
treed4ff78aaa0294669b7dd21d4cbde299d9a3fdf6f /teal-src/plugins/muc
parenta35dac3a802d6d1a572744046b975af6f3a148f5 (diff)
downloadprosody-bac012d67553b5baa529404d0b148cfd43a22372.tar.gz
prosody-bac012d67553b5baa529404d0b148cfd43a22372.zip
MUC: Add Teal description of muc.lib functions
Diffstat (limited to 'teal-src/plugins/muc')
-rw-r--r--teal-src/plugins/muc/muc.lib.d.tl9
1 files changed, 9 insertions, 0 deletions
diff --git a/teal-src/plugins/muc/muc.lib.d.tl b/teal-src/plugins/muc/muc.lib.d.tl
index 64f8004a..b790153b 100644
--- a/teal-src/plugins/muc/muc.lib.d.tl
+++ b/teal-src/plugins/muc/muc.lib.d.tl
@@ -161,3 +161,12 @@ local record Room
save : function (Room, forced : boolean, savestate : boolean) : boolean
freeze : function (Room, live : boolean) : FrozenRoom, { string : StateEntry }
end
+
+local record lib
+ new_room : function (jid : string, config : { string : any }) : Room
+ restore_room : function (Room.FrozenRoom, { string : Room.StateEntry }) : Room
+
+ room_mt : metatable
+end
+
+return lib