Class: TextChannel
Hierarchy
↳
TextChannel
↳↳
NewsChannel
Constructors
constructor
• new TextChannel(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APITextChannel |
Overrides
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:25
Properties
client
• Readonly
client: Client
Inherited from
Defined in
packages/libcord/src/structures/Base.ts:8
guild
• guild: Guild
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:14
id
• id: string
Inherited from
Defined in
packages/libcord/src/structures/channels/Channel.ts:8
lastMessageId
• lastMessageId: null
| string
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:21
messages
• messages: Collection
<string
, Message
>
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:22
name
• name: string
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:13
nsfw
• nsfw: boolean
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:15
parentId
• parentId: null
| string
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:17
permissionOverwrites
• permissionOverwrites: PermissionOverwrite
[] = []
Inherited from
GuildChannel.permissionOverwrites
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:18
position
• position: number
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:16
rateLimitPerUser
• rateLimitPerUser: null
| number
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:20
threads
• threads: default
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:23
topic
• topic: null
| string
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:19
type
Overrides
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:18
Accessors
mention
• get
mention(): string
Returns
string
Inherited from
GuildChannel.mention
Defined in
packages/libcord/src/structures/channels/Channel.ts:19
Methods
createMessage
▸ createMessage(content
): Promise
<Message
>
Sends a message in a text channel
Parameters
Name | Type | Description |
---|---|---|
content | string | Embed | MessageOptions | the content to send can be an embed, object or string |
Returns
Promise
<Message
>
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:57
▸ createMessage(msg
): Promise
<Message
>
Parameters
Name | Type |
---|---|
msg | string | Embed | MessageOptions |
Returns
Promise
<Message
>
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:60
edit
▸ edit(options
): Promise
<undefined
| VoiceChannel
| GuildChannel
| TextChannel
| CategoryChannel
>
Parameters
Name | Type |
---|---|
options | ChannelEditOptions |
Returns
Promise
<undefined
| VoiceChannel
| GuildChannel
| TextChannel
| CategoryChannel
>
Inherited from
Defined in
packages/libcord/src/structures/channels/GuildChannel.ts:71
send
▸ send(content
): Promise
<Message
>
Sends a message in a text channel
Deprecated
Parameters
Name | Type | Description |
---|---|---|
content | string | Embed | MessageOptions | the content to send can be an embed, object or string |
Returns
Promise
<Message
>