Skip to main content

Class: Message

Hierarchy​

Constructors​

constructor​

• new Message(client, data)

Parameters​

NameType
clientClient
dataCustomMessageData

Overrides​

Base.constructor

Defined in​

packages/libcord/src/structures/Message.ts:27

Properties​

author​

• author: undefined | User

Defined in​

packages/libcord/src/structures/Message.ts:23


channel​

• channel: TextChannel

Defined in​

packages/libcord/src/structures/Message.ts:19


channelID​

• channelID: string

Defined in​

packages/libcord/src/structures/Message.ts:21


client​

• Readonly client: Client

Inherited from​

Base.client

Defined in​

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


content​

• content: string

Defined in​

packages/libcord/src/structures/Message.ts:22


guild​

• Optional guild: Guild

Defined in​

packages/libcord/src/structures/Message.ts:25


id​

• id: string

Defined in​

packages/libcord/src/structures/Message.ts:20


member​

• member: Member

Defined in​

packages/libcord/src/structures/Message.ts:24

Methods​

reply​

▸ reply(options): Promise<Message>

Reply to a message

Parameters​

NameTypeDescription
optionsstring | Embed | MessageOptionsThe options for the message, can be a string or embed or object

Returns​

Promise<Message>

message

Defined in​

packages/libcord/src/structures/Message.ts:89