Class: NewsChannel
Hierarchy
↳
NewsChannel
Constructors
constructor
• new NewsChannel(client, data)
Parameters
| Name | Type |
|---|---|
client | Client |
data | APITextChannel |
Inherited from
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
Inherited from
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:21
messages
• messages: Collection<string, Message>
Inherited from
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
TextChannel.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
Overrides
Defined in
packages/libcord/src/structures/channels/NewsChannel.ts:5
threads
• threads: default
Inherited from
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:23
topic
• topic: null | string
Inherited from
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:19
type
• Readonly type: News = ChannelTypes.News
Overrides
Defined in
packages/libcord/src/structures/channels/NewsChannel.ts:6
Accessors
mention
• get mention(): string
Returns
string
Inherited from
TextChannel.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>
Inherited from
Defined in
packages/libcord/src/structures/channels/TextChannel.ts:57
▸ createMessage(msg): Promise<Message>
Parameters
| Name | Type |
|---|---|
msg | string | Embed | MessageOptions |
Returns
Promise<Message>
Inherited from
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>