Class: MessageManager
Hierarchy
Base
↳
MessageManager
Constructors
constructor
• new MessageManager(app
)
A manager for manipulating messages.
Parameters
Name | Type |
---|---|
app | App |
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
Name | Type | Description |
---|---|---|
raw | APIMessage & { guild_id? : string } | The raw message data. |
Returns
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
Name | Type | Description |
---|---|---|
gid | string | The ID of the guild the message is in. |
cid | string | The ID the channel the message is in. |
mid | string | The 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
Name | Type | Description |
---|---|---|
cid | string | The ID the channel the message is in. |
mid | string | The ID of the message to fetch. |
Returns
Promise
<Message
>
A constructed channel structure.
Defined in
packages/disploy/src/structs/managers/MessageManager.ts:30