Skip to content

Commit 1c63a50

Browse files
feat: [CHA-1699] add Future Channel Bans support (#156)
- Add queryFutureChannelBans method - banUser/unbanUser already support options array for new parameters
1 parent 8ad67f9 commit 1c63a50

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/GetStream/StreamChat/Client.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,17 @@ public function queryBannedUsers(array $filterConditions, array $options = []):
607607
return $this->get("query_banned_users", ["payload" => json_encode($options)]);
608608
}
609609

610+
/** Queries future channel bans.
611+
* Future channel bans are automatically applied when a user creates a new channel
612+
* or adds a member to an existing channel.
613+
* @link https://getstream.io/chat/docs/php/moderation/?language=php
614+
* @throws StreamException
615+
*/
616+
public function queryFutureChannelBans(array $options = []): StreamResponse
617+
{
618+
return $this->get("query_future_channel_bans", ["payload" => json_encode($options)]);
619+
}
620+
610621
/** Gets multiple messages.
611622
* @link https://getstream.io/chat/docs/php/send_message/?language=php#get-a-message
612623
* @throws StreamException

0 commit comments

Comments
 (0)