Kicks the user and blocks them from rejoining until unbanned, which makes it the standard tool against abusers. The reason is recorded with the ban event. Unban by setting their membership to leave via the m.room.member state endpoint. Room-level bans only affect this room; server-level controls live in the Admin API.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.