Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [iceshrimp-sdk](./iceshrimp-sdk.md) > [Stream](./iceshrimp-sdk.stream.md) > [useChannel](./iceshrimp-sdk.stream.usechannel.md)
|
||||
|
||||
## Stream.useChannel() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
useChannel<C extends keyof Channels>(channel: C, params?: Channels[C]["params"], name?: string): Connection<Channels[C]>;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| channel | C | |
|
||||
| params | [Channels](./iceshrimp-sdk.channels.md)<!-- -->\[C\]\["params"\] | _(Optional)_ |
|
||||
| name | string | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
[Connection](./iceshrimp-sdk.channelconnection.md)<!-- --><[Channels](./iceshrimp-sdk.channels.md)<!-- -->\[C\]>
|
||||
|
||||
Reference in New Issue
Block a user