Skip to main content

Class: Thread

Hierarchy

Constructors

constructor

new Thread(client, data)

Parameters

NameType
clientClient
dataAPIThreadChannel

Overrides

Base.constructor

Defined in

packages/libcord/src/structures/channels/Thread.ts:28

Properties

archived

Readonly archived: undefined | boolean

Defined in

packages/libcord/src/structures/channels/Thread.ts:16


channel

Readonly channel: undefined | Promise<undefined | TextChannel | NewsChannel>

Defined in

packages/libcord/src/structures/channels/Thread.ts:24


client

Readonly client: Client

Inherited from

Base.client

Defined in

packages/libcord/src/structures/Base.ts:8


data

Readonly data: APIThreadChannel

Defined in

packages/libcord/src/structures/channels/Thread.ts:27


id

Readonly id: string

Defined in

packages/libcord/src/structures/channels/Thread.ts:15


locked

Readonly locked: undefined | boolean

Defined in

packages/libcord/src/structures/channels/Thread.ts:17


member_count

Readonly member_count: undefined | number

Defined in

packages/libcord/src/structures/channels/Thread.ts:23


rate_limit

Readonly rate_limit: undefined | number

Defined in

packages/libcord/src/structures/channels/Thread.ts:22


type

Readonly type: GuildNewsThread | GuildPublicThread | GuildPrivateThread

Defined in

packages/libcord/src/structures/channels/Thread.ts:18

Methods

delete

delete(): Promise<default>

Returns

Promise<default>

Defined in

packages/libcord/src/structures/channels/Thread.ts:42


send

send(content): Promise<Message>

Parameters

NameType
contentstring | Embed | MessageOptions

Returns

Promise<Message>

Defined in

packages/libcord/src/structures/channels/Thread.ts:45

send(msg): Promise<Message>

Parameters

NameType
msgstring | Embed | MessageOptions

Returns

Promise<Message>

Defined in

packages/libcord/src/structures/channels/Thread.ts:46