Метод assertCanDo
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
136–147
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/Tools/Support/ImToolContext.php
Исходный код
Сигнатура метода
public function assertCanDo(Chat $chat, int $userId, Action $action, mixed $target = null): void
Возвращает:
void
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$chat
|
Chat
|
-
|
-
|
$userId
|
int
|
-
|
-
|
$action
|
Action
|
-
|
-
|
$target
|
mixed
|
null
|
-
|