diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-23 19:12:38 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-23 19:12:38 +0200 |
commit | 0d4315008374d9a4dfb11f934875b1a16670ec74 (patch) | |
tree | 4327eecbf44d79152ac02a37c64bab402b22a8af /lib/csapi/banning.h | |
parent | 65e6ecd9711372e1e2afde769967ee46b3920307 (diff) | |
download | libquotient-0d4315008374d9a4dfb11f934875b1a16670ec74.tar.gz libquotient-0d4315008374d9a4dfb11f934875b1a16670ec74.zip |
Re-generate API files
Diffstat (limited to 'lib/csapi/banning.h')
-rw-r--r-- | lib/csapi/banning.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/csapi/banning.h b/lib/csapi/banning.h index 37ae91ee..7a9697d3 100644 --- a/lib/csapi/banning.h +++ b/lib/csapi/banning.h @@ -30,7 +30,8 @@ public: * * \param reason * The reason the user has been banned. This will be supplied as the - * ``reason`` on the target's updated `m.room.member`_ event. + * `reason` on the target's updated + * [`m.room.member`](/client-server-api/#mroommember) event. */ explicit BanJob(const QString& roomId, const QString& userId, const QString& reason = {}); @@ -54,8 +55,13 @@ public: * * \param userId * The fully qualified user ID of the user being unbanned. + * + * \param reason + * Optional reason to be included as the `reason` on the subsequent + * membership event. */ - explicit UnbanJob(const QString& roomId, const QString& userId); + explicit UnbanJob(const QString& roomId, const QString& userId, + const QString& reason = {}); }; } // namespace Quotient |