> For the complete documentation index, see [llms.txt](https://dlite.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dlite.js.org/classes/channel.md).

# channel

## Constructor

```javascript
new Channel(channeldata, client)
```

## Properties

### id

The id of the provided channel

Returns - [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

### recipients

The recipients of the channel in dms, if any

Returns - Array<[`userObject`](https://discord.com/developers/docs/resources/user#user-object)>

### lastMessageID

The id of the last sent message, if any

Returns - [`?Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

### type

The type of the provided channel

Returns - [`typeID`](https://discord.com/developers/docs/resources/channel#channel-object-channel-types)

### name

The name of the provided channel

Returns - [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)

### position

The position of the channel in its guild, if the channel is in a guild

Returns - [`?Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

### parentID

The id of the category its in&#x20;

Returns - [`?Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

### topic

The topic of the channel provided

Returns - [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)

### permissionOverwrites

The permission of the channel provided

Returns - [`Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)

### nsfw

Whether or not the provided channel is nsfw

Returns - [`Boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)

### rateLimitPerUser

The ratelimit for each user

Returns - [`?Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

## Methods

### send(message)

Send a message to the provided channel

| Param   | Required? | Description                                                                              |
| ------- | --------- | ---------------------------------------------------------------------------------------- |
| message | true      | <p>The message to send to the channel.</p><p>Can be an embed object or just a string</p> |
