# TextChannel

## Methods

#### \<TextChannel>.bulkDelete(array)

Bulk Deletes the Array of Message IDs

| Param | Required | Default | Type  |
| ----- | -------- | ------- | ----- |
| array | true     | none    | Array |

#### \<TextChannel>.createInvite(options)

Creates an Invite

| Param             | Required | Default | Type    |
| ----------------- | -------- | ------- | ------- |
| options           | false    | {}      | Object  |
| options.temporary | false    | false   | Boolean |
| options.maxAge    | false    | 86400   | Number  |
| options.maxUses   | false    | 0       | Number  |
| options.unique    | false    | false   | Boolean |

#### \<TextChannel>.edit(options);

{% hint style="danger" %}
This is only available at the Master Branch!
{% endhint %}

| Param                  | Required | Default | Type               |
| ---------------------- | -------- | ------- | ------------------ |
| name                   | false    | none    | String             |
| position               | false    | none    | Number             |
| topic                  | false    | none    | String             |
| nsfw                   | false    | none    | Boolean            |
| rate\_limit\_per\_user | false    | none    | Number             |
| parent\_id             | false    | none    | String\<Snowflake> |

#### \<TextChannel>.editPermission(options)

{% hint style="danger" %}
This is only available at the Master Branch!
{% endhint %}

| Param                          | Required | Default | Type                                                                                                   |
| ------------------------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------ |
| options                        | false    | none    | Object                                                                                                 |
| options.permission\_overwrites | false    | none    | [Array\<Overwrite Objects>](https://discordapp.com/developers/docs/resources/channel#overwrite-object) |

#### \<TextChannel>.fetchInvites()

Fetch all invites created on the Channel

#### \<TextChannel>.fetchMessage(message)

Fetch a Message&#x20;

| Param   | Required | Default | Type                |
| ------- | -------- | ------- | ------------------- |
| message | true     | none    | String \| Snowflake |

#### \<TextChannel>.fetchMessages(limit)

Fetches the amount of messages

| Param | Required | Default | Type   | Max     |
| ----- | -------- | ------- | ------ | ------- |
| limit | true     | 50      | Number | 2 - 100 |

#### \<TextChannel>.sendMessage(content)

Send a message to the channel

| Param   | Required | Default | Type   |
| ------- | -------- | ------- | ------ |
| content | true     | none    | String |

#### \<TextChannel>.sendEmbed(embed)

{% hint style="danger" %}
This Function is only available at the Master Branch!
{% endhint %}

| Param | Required | Default | Type                                                                                            |
| ----- | -------- | ------- | ----------------------------------------------------------------------------------------------- |
| embed | true     | {}      | [Object\<Embed Options>](https://discordapp.com/developers/docs/resources/channel#embed-object) |
