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 - Boolean

timestamp

The timestamp of when the message is sent

Returns - Timestamp

pinned

Whether or not the message is pinned to the channel

Returns - Boolean

nonce

A random number generated after the message was successfully sent

Returns - Number

mentions

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

Returns - Array

rolesMention

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

Returns - Array

everyoneMentioned

Whether or not @everyone has been mentioned in the message

Returns - Boolean

member

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

Returns - Object

flags

The flags of the channel

Returns - Number

embeds

An array of the embeds of the channel

Returns - Array

editedTimestamp

the timestamp of the time the message was last edited

Returns - ?Timestamp

content

the content of the message

Returns - String

channelID

the id of the channel the message was sent in

Returns - ?snowflake

attachments

An array of the attachments the message has

Returns - Array

guildID

the id of the guild the message was sent in

Returns - ?snowflake

id

the id of the message

Returns - ?snowflake

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