Class: TextChannel
Extends
Constructors
new TextChannel()
new TextChannel(
client,guild,data):TextChannel
Parameters
| Parameter | Type |
|---|---|
client | Client |
guild | Guild |
data | any |
Returns
Overrides
Defined in
src/core/classes/TextChannel.ts:26 (opens in a new tab)
Properties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
cache | public | TextChannelCacheManager | - | src/core/classes/TextChannel.ts:22 (opens in a new tab) |
guild | public | Guild | GuildChannel.guild | src/core/classes/GuildChannel.ts:11 (opens in a new tab) |
id | public | string | GuildChannel.id | src/core/classes/GuildChannel.ts:5 (opens in a new tab) |
lastMessageId? | public | string | - | src/core/classes/TextChannel.ts:21 (opens in a new tab) |
name | public | string | GuildChannel.name | src/core/classes/GuildChannel.ts:6 (opens in a new tab) |
nsfw | public | boolean | GuildChannel.nsfw | src/core/classes/GuildChannel.ts:8 (opens in a new tab) |
position | public | number | GuildChannel.position | src/core/classes/GuildChannel.ts:9 (opens in a new tab) |
topic? | public | null | string | GuildChannel.topic | src/core/classes/GuildChannel.ts:10 (opens in a new tab) |
type | public | number | GuildChannel.type | src/core/classes/GuildChannel.ts:7 (opens in a new tab) |
Methods
deleteMessage()
deleteMessage(
id):Promise<RequestReponse>
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<RequestReponse>
Defined in
src/core/classes/TextChannel.ts:78 (opens in a new tab)
sendMessage()
sendMessage(
content,options?):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
content | string |
options? | IMessageSendOptions |
Returns
Promise<Message>