Constructor
# new Message(data)
Creates new message data holder
Parameters:
| Name | Type | Description |
|---|---|---|
data |
object
|
Classes
Methods
# async static fromDatabase(data, ctx) → {Promise.<Message>}
Parameters:
| Name | Type | Description |
|---|---|---|
data |
DBMessage
|
DBMessageWithAuthor
|
DBMessageWithTarget
|
DBMessageFull
|
|
ctx |
RequestContextWithClient
|
Promise.<Message>
# async static getMessage(id, ctx, client) → {Promise.<Message>}
Fetches given message
Parameters:
| Name | Type | Description |
|---|---|---|
id |
SnowflakeString
|
bigint
|
|
ctx |
RequestContextWithClient
|
|
client |
UserClient
|
Promise.<Message>