AIDK API Reference / aidk-kernel / tryGetChannel
Function: tryGetChannel() ​
ts
function tryGetChannel(channelName: string): Channel | undefined;Defined in: packages/kernel/src/channel-helpers.ts:76
Try to get a channel from the current context (returns undefined if not available).
Parameters ​
| Parameter | Type |
|---|---|
channelName | string |
Returns ​
Channel | undefined