MessageCreate

Constructor

new messageCreate(object, client)

Properties

author

The author of the message that was sent

Returns - user

type

The type of the message

Returns - messageType

tss

Whether or not the message is a Text-to-Speech message.

Returns - Booleanarrow-up-right

timestamp

The timestamp of when the message is sent

Returns - Timestamp

pinned

Whether or not the message is pinned to the channel

Returns - Booleanarrow-up-right

nonce

A random number generated after the message was successfully sent

Returns - Numberarrow-up-right

mentions

An array of mentions of members of the message - Will be switched to collection soon

Returns - Arrayarrow-up-right

rolesMention

An array of mentions of roles of the message - Will be switched to collection soon

Returns - Arrayarrow-up-right

everyoneMentioned

Whether or not @everyone has been mentioned in the message

Returns - Booleanarrow-up-right

member

The member object returned by discord - will have its own class soon

Returns - Objectarrow-up-right

flags

The flags of the channel

Returns - Numberarrow-up-right

embeds

An array of the embeds of the channel

Returns - Arrayarrow-up-right

editedTimestamp

the timestamp of the time the message was last edited

Returns - ?Timestamp

content

the content of the message

Returns - Stringarrow-up-right

channelID

the id of the channel the message was sent in

Returns - ?snowflakearrow-up-right

attachments

An array of the attachments the message has

Returns - Arrayarrow-up-right

guildID

the id of the guild the message was sent in

Returns - ?snowflakearrow-up-right

id

the id of the message

Returns - ?snowflakearrow-up-right

client

The client the message was sent in

Returns - ?Client

channel

The channel constructor of the message

Returns - channelUtil

author

The user constructor of the user that sent the message

Returns - User

Methods

delete()

This method will delete the current message and fire the messageDelete event

Returns - ?messageDeleteObject

pin()

This method will pin the message to the channel

Returns - ?messagePinObject

unpin()

This method will unpin the message to the channel

Returns - ?messageUnpinObject

Last updated