Skip to main content

Class: MessageManager

Hierarchy​

  • Base

    ↳ MessageManager

Constructors​

constructor​

• new MessageManager(app)

A manager for manipulating messages.

Parameters​

NameType
appApp

Overrides​

Base.constructor

Defined in​

packages/disploy/src/structs/managers/MessageManager.ts:12

Properties​

app​

• app: App

Inherited from​

Base.app

Defined in​

packages/disploy/src/structs/Base.ts:4

Methods​

constructMessage​

▸ constructMessage(raw): Message

Construct a message from a raw message object.

Parameters​

NameTypeDescription
rawAPIMessage & { guild_id?: string }The raw message data.

Returns​

Message

A constructed message structure.

Defined in​

packages/disploy/src/structs/managers/MessageManager.ts:43


fetch​

▸ fetch(gid, cid, mid): Promise<Message>

Fetch a message by its channel & message ID.

Parameters​

NameTypeDescription
gidstringThe ID of the guild the message is in.
cidstringThe ID the channel the message is in.
midstringThe ID of the message to fetch.

Returns​

Promise<Message>

A constructed channel structure.

Defined in​

packages/disploy/src/structs/managers/MessageManager.ts:23

▸ fetch(cid, mid): Promise<Message>

Fetch a message by its channel & message ID.

Parameters​

NameTypeDescription
cidstringThe ID the channel the message is in.
midstringThe ID of the message to fetch.

Returns​

Promise<Message>

A constructed channel structure.

Defined in​

packages/disploy/src/structs/managers/MessageManager.ts:30