Message

Message

new Message(obj, client)

Source:
Properties:
Name Type Description
id Int
content String
attachments Array
files Array
TTL Int Time to live until auto-deletion.
pinned Bool
edited Bool
user User
author User Proxy for user.
channel Channel
createdTime Int
createdAt Date
Parameters:
Name Type Description
obj Object
client Object

Methods

delete() → {Promise}

Source:
Returns:
Type
Promise

edit(content) → {Promise}

Source:
Parameters:
Name Type Description
content String
Returns:
Type
Promise

pin() → {Promise}

Source:
Returns:
Type
Promise

reply(content) → {Promise}

Source:
Convinience function for message.channel.send
Parameters:
Name Type Description
content String
Returns:
Type
Promise

unpin() → {Promise}

Source:
Returns:
Type
Promise