* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include"basejob.hpp"
namespaceKazv::Api{
/*! \brief Ban a user in the room.
*
* Ban a user in the room. If the user is currently in the room, also kick them.
*
* When a user is banned from a room, they may not join it or be invited to it until they are unbanned.
*
* The caller must have the required power level in order to perform this operation.
*/
classBanJob:publicBaseJob{
public:
classJobResponse:publicResponse
{
public:
JobResponse(Responser);
boolsuccess()const;
};
staticconstexprautoneedsAuth(){
returntrue
;
}
// Construction/destruction
/*! \brief Ban a user in the room.
*
* \param roomId
* The room identifier (not alias) from which the user should be banned.
*
* \param userId
* The fully qualified user ID of the user being banned.
*
* \param reason
* The reason the user has been banned. This will be supplied as the `reason` on the target's updated [`m.room.member`](/client-server-api/#mroommember) event.