new Message(Client, Data)
Create a message object
Parameters:
Name | Type | Description |
---|---|---|
Client |
Client | Parent Client |
Data |
string | Data relating to message |
- Source:
Methods
delete() → {Promise.<void>}
Delete the message
- Source:
Returns:
- Type
- Promise.<void>
edit(new_content) → {Promise.<void>}
Edit the message
Parameters:
Name | Type | Description |
---|---|---|
new_content |
string | The content to replace the message with |
- Source:
Returns:
- Type
- Promise.<void>
like() → {Promise.<void>}
Like the message
- Source:
Returns:
- Type
- Promise.<void>
reply(data) → {Promise.<void>}
Reply to the message
Parameters:
Name | Type | Description |
---|---|---|
data |
string | The message body |
- Source:
Returns:
- Type
- Promise.<void>
sync(callback) → {void}
Synchronise the channel
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | Callback after completion |
- Source:
Returns:
- Type
- void
unlike() → {Promise.<void>}
Unlike the message
- Source:
Returns:
- Type
- Promise.<void>